diff options
author | Andrew Cady <d@jerkface.net> | 2021-09-15 01:59:09 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2021-09-15 01:59:09 -0400 |
commit | 5346f19d0ac9c4fa7d2474175159c88d536a8b63 (patch) | |
tree | 312c27d1e8fb8d3c9949c05a2960e4370744f450 /dot/local/bin | |
parent | 88417264e401a75ab5566d6ae317ac424bf4a5cf (diff) |
alternative implementation of cutbuffer which does not save to disk
Diffstat (limited to 'dot/local/bin')
-rw-r--r-- | dot/local/bin/cutbuffer-pure | 20 |
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 | |||
3 | push() | ||
4 | { | ||
5 | xcb -r 1 | ||
6 | xsel --output --primary | xcb -s 0 | ||
7 | } | ||
8 | pop() | ||
9 | { | ||
10 | xcb -r -1 | ||
11 | xcb -p 0 | xsel --input --primary | ||
12 | } | ||
13 | menu() | ||
14 | { | ||
15 | xcb -l v | ||
16 | } | ||
17 | |||
18 | case "$*" in | ||
19 | pop|push|menu) $1 ;; | ||
20 | esac | ||