Skip to content
Snippets Groups Projects
Commit 64d0f105 authored by Jason A. Donenfeld's avatar Jason A. Donenfeld
Browse files

clip: wait longer for slow systems

parent a41ce86e
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ clip() {
# we're going with this for now.
sleep_argv0="password store sleep on display $DISPLAY"
pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.1
pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.5
before="$(xclip -o -selection "$X_SELECTION" | base64)"
echo -n "$1" | xclip -selection "$X_SELECTION"
(
......
......@@ -3,7 +3,7 @@
clip() {
sleep_argv0="password store sleep for user $(id -u)"
pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.1
pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.5
before="$(pbpaste | openssl base64)"
echo -n "$1" | pbcopy
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment