1
0
Fork 0

xsel-clear: Notify on completion

This commit is contained in:
Jeremy Kaplan 2019-08-29 11:24:56 -07:00
commit 574d3e58d3

View file

@ -1,3 +1,11 @@
#!/bin/sh
xsel -c && xsel -sc && xsel -bc
xsel_clear() {
xsel -c && xsel -sc && xsel -bc
}
if xsel_clear; then
notify-send -t 1000 'xsel-clear'
else
notify-send -t 1000 -h 'string:bgcolor:#ff0000' 'xsel failed to clear'
fi