diff options
author | Andrew Cady <d@jerkface.net> | 2021-09-15 02:11:11 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2021-09-15 02:11:11 -0400 |
commit | 623d62af7ee3130795c871db9079d124e6f16868 (patch) | |
tree | 93b6157404248a7ba91e3948fc801a8cc56afdfa | |
parent | dc4ed364c14d979235a764c6336079340b5e503e (diff) |
cutbuffer: save popped selection to clipboard in addition to primary
-rwxr-xr-x | dot/local/bin/cutbuffer | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dot/local/bin/cutbuffer b/dot/local/bin/cutbuffer index 827ca8d..daf8e37 100755 --- a/dot/local/bin/cutbuffer +++ b/dot/local/bin/cutbuffer | |||
@@ -21,7 +21,8 @@ cutbuffer_pop() | |||
21 | f=$(find . -maxdepth 1 -type f -name "$nameglob" -print0 | sort -z -V -r | head -z -n 1 | xargs -0) | 21 | f=$(find . -maxdepth 1 -type f -name "$nameglob" -print0 | sort -z -V -r | head -z -n 1 | xargs -0) |
22 | 22 | ||
23 | xcb -s 0 < "$f" | 23 | xcb -s 0 < "$f" |
24 | xsel --input < "$f" | 24 | xsel --input --primary < "$f" |
25 | xsel --input --clipboard < "$f" | ||
25 | 26 | ||
26 | mkdir -p .popped | 27 | mkdir -p .popped |
27 | mv "$f" -t .popped | 28 | mv "$f" -t .popped |