diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2022-11-23 20:19:16 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2022-11-23 20:38:42 +0800 |
commit | 77b8677c8e14f0c8bf57a880fb835adb24059850 (patch) | |
tree | 2c88455f9321a2081d3a39a418fa2c3525bc083c /X11/rofi/pass.get | |
parent | e6157d315618e3ed4e55ce44f2057f98643e3098 (diff) |
Update password keep policy
Diffstat (limited to 'X11/rofi/pass.get')
-rwxr-xr-x | X11/rofi/pass.get | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/X11/rofi/pass.get b/X11/rofi/pass.get index df980b7..b6560b0 100755 --- a/X11/rofi/pass.get +++ b/X11/rofi/pass.get | |||
@@ -36,7 +36,7 @@ fi | |||
36 | RESULT="$(pass $1)" | 36 | RESULT="$(pass $1)" |
37 | if [ -n "$RESULT" ]; then | 37 | if [ -n "$RESULT" ]; then |
38 | # Copy the given password into clipboard | 38 | # Copy the given password into clipboard |
39 | echo "$RESULT" | head -1 | tr -d '\n' | xsel -ib | 39 | echo "$RESULT" | head -1 | tr -d '\n' | xsel -i -t 30000 |
40 | 40 | ||
41 | # And show extra message | 41 | # And show extra message |
42 | EXTRA="$(echo; echo; echo "$RESULT" | sed '1d' | sed '1{/^$/d}')" | 42 | EXTRA="$(echo; echo; echo "$RESULT" | sed '1d' | sed '1{/^$/d}')" |