bin: Merge clipboard wrappers
This commit is contained in:
parent
6627f790da
commit
303c3ab55e
9 changed files with 108 additions and 20 deletions
11
bin/wl-clear
Executable file
11
bin/wl-clear
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
wl_clear() {
|
||||
wl-copy --foreground --clear "$@"
|
||||
}
|
||||
|
||||
if wl_clear --primary && wl_clear; then
|
||||
notify-send -t 1000 'wl-clear'
|
||||
else
|
||||
notify-send -t 1000 -h 'string:bgcolor:#ff0000' 'wl-clear failed to clear'
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue