summaryrefslogtreecommitdiff
path: root/dot/local/bin/cutbuffer-pure
blob: cbf2b976019335d998eb5302dfb2dc64518da992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

push()
{
    xcb -r 1
    xsel --output --primary | xcb -s 0
}
pop()
{
    xcb -r -1
    xcb -p 0 | xsel --input --primary
}
menu()
{
    xcb -l v
}

case "$*" in
    pop|push|menu) $1 ;;
esac