11 lines
227 B
Bash
Executable file
11 lines
227 B
Bash
Executable file
#!/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
|