summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-09-15 02:10:41 -0400
committerAndrew Cady <d@jerkface.net>2021-09-15 02:10:41 -0400
commitdc4ed364c14d979235a764c6336079340b5e503e (patch)
tree74c4cca5128b74642a6a544d5c6c0893efaa00a7
parent5346f19d0ac9c4fa7d2474175159c88d536a8b63 (diff)
cutbuffer push: use xsel to get selection instead of xcb; push saved selection to cutbuffers
-rwxr-xr-xdot/local/bin/cutbuffer4
1 files changed, 3 insertions, 1 deletions
diff --git a/dot/local/bin/cutbuffer b/dot/local/bin/cutbuffer
index 6921b02..827ca8d 100755
--- a/dot/local/bin/cutbuffer
+++ b/dot/local/bin/cutbuffer
@@ -11,7 +11,9 @@ cutbuffer_push()
11{ 11{
12 now=$(date "$date_format") 12 now=$(date "$date_format")
13 dest=$dest_basename.$now.$dest_extension 13 dest=$dest_basename.$now.$dest_extension
14 xcb -p 0 > "$dest" 14 xsel --output > "$dest"
15 xcb -r 1
16 xcb -s 0 < "$dest"
15} 17}
16 18
17cutbuffer_pop() 19cutbuffer_pop()