1
0
Fork 0
dotfiles/bin/xsel-clear

11 lines
205 B
Bash
Executable file

#!/bin/sh
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