1
0
Fork 0

bin: cb-clear for wayland

This commit is contained in:
Jeremy Kaplan 2021-10-30 20:27:07 -07:00
commit c24afa4453
2 changed files with 12 additions and 0 deletions

11
bin/cb-clear Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
cb_clear() {
wl-copy --foreground --clear "$@"
}
if cb_clear --primary && cb_clear; then
notify-send -t 1000 'cb-clear'
else
notify-send -t 1000 -h 'string:bgcolor:#ff0000' 'cb-clear failed to clear'
fi

View file

@ -164,5 +164,6 @@ focus_on_window_activation smart
mouse_warping output
seat seat0 hide_cursor 5000
bindsym $super+x exec cb-clear
include /etc/sway/config.d/*