Skip to content

Commit

Permalink
Fix xclip commandline.
Browse files Browse the repository at this point in the history
  • Loading branch information
a1exsh committed Apr 10, 2013
1 parent 983a801 commit 30ea32c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pwm
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ have_xclip() {
}

soak_xclip() {
# WTF: why the magic 5 selection requests?
xclip -in -selection clipboard -l 7 #5
xclip -in -selection clipboard -l 0
}

echo "Password Manager v0.1"
Expand Down Expand Up @@ -195,7 +194,7 @@ while true; do
unset masterpw
else
echo "$pw" | cut -d: -f2 | tr -d '\n' | soak_xclip
echo "soaked password for one-time paste from X clipboard"
echo "soaked password for paste from X clipboard"
fi
;;
s)
Expand Down

0 comments on commit 30ea32c

Please sign in to comment.