bin: cb-clear for wayland
This commit is contained in:
parent
6c1044cbc4
commit
c24afa4453
2 changed files with 12 additions and 0 deletions
11
bin/cb-clear
Executable file
11
bin/cb-clear
Executable 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
|
||||
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue