xsel-clear: Notify on completion
This commit is contained in:
parent
f747f734d7
commit
574d3e58d3
1 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,11 @@
|
|||
#!/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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue