summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-09-15 01:59:09 -0400
committerAndrew Cady <d@jerkface.net>2021-09-15 01:59:09 -0400
commit5346f19d0ac9c4fa7d2474175159c88d536a8b63 (patch)
tree312c27d1e8fb8d3c9949c05a2960e4370744f450
parent88417264e401a75ab5566d6ae317ac424bf4a5cf (diff)
alternative implementation of cutbuffer which does not save to disk
-rw-r--r--dot/local/bin/cutbuffer-pure20
1 files changed, 20 insertions, 0 deletions
diff --git a/dot/local/bin/cutbuffer-pure b/dot/local/bin/cutbuffer-pure
new file mode 100644
index 0000000..cbf2b97
--- /dev/null
+++ b/dot/local/bin/cutbuffer-pure
@@ -0,0 +1,20 @@
1#!/bin/sh -e
2
3push()
4{
5 xcb -r 1
6 xsel --output --primary | xcb -s 0
7}
8pop()
9{
10 xcb -r -1
11 xcb -p 0 | xsel --input --primary
12}
13menu()
14{
15 xcb -l v
16}
17
18case "$*" in
19 pop|push|menu) $1 ;;
20esac