river: Add dunst key mappings

Added notification dismissal and recovery key binds to river key
bindings. This is necessary since in wayland dunst can't just
receive key presses anymore.

The new key binds are:

```
Mod+N         - dismiss 1 notification
Mod+Shift+N   - dismiss all notifications
Mod+Control+N - display last dismissed notification(s) again
```
This commit is contained in:
Marty Oehme 2021-12-11 11:13:45 +01:00
parent 0e4556accb
commit 4d563be7a4
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -48,16 +48,20 @@ riverctl map normal $mod backspace spawn "powermenu"
# Open Bookmark search # Open Bookmark search
riverctl map normal None XF86Search spawn "qutedmenu" riverctl map normal None XF86Search spawn "qutedmenu"
riverctl map normal $mod+Shift O spawn "qutedmenu"
# Open clipboard history # Open clipboard history
riverctl map normal $mod+Shift Space spawn "clipman pick --tool=bemenu" riverctl map normal $mod+Shift Space spawn "clipman pick --tool=bemenu"
# Open floting calculator # Open floating calculator
riverctl map normal $mod+Shift R spawn "$term --class float -e qalc" riverctl map normal $mod+Shift R spawn "$term --class float -e qalc"
# Open emoji picker
riverctl map normal $mod+Shift E spawn "bemoji -t"
# Desktop theming # Desktop theming
# shellcheck disable=SC2016 # shellcheck disable=SC2016
riverctl map normal $mod F8 spawn 'styler set $(styler list themes | bemenu)' riverctl map normal $mod+Shift S spawn 'styler set $(styler list themes | bemenu)'
# Password dropdown frontend # Password dropdown frontend
riverctl map normal $mod+Shift P spawn "pass-pick" riverctl map normal $mod+Shift P spawn "pass-pick"
@ -71,6 +75,11 @@ riverctl map normal Shift Print spawn "screenshot | sharefile -"
riverctl map normal $mod Print spawn "screenshot region" riverctl map normal $mod Print spawn "screenshot region"
riverctl map normal $mod+Shift Print spawn "screenshot region | sharefile -" riverctl map normal $mod+Shift Print spawn "screenshot region | sharefile -"
# control dunst notification daemon
riverctl map normal $mod N spawn "dunstctl close"
riverctl map normal $mod+Shift N spawn "dunstctl close-all"
riverctl map normal $mod+Control N spawn "dunstctl history-pop"
# # Clear clipboard # # Clear clipboard
# riverctl map normal $mod BackSpace spawn 'wl-copy -c && printf ''|xclip -selection c' # riverctl map normal $mod BackSpace spawn 'wl-copy -c && printf ''|xclip -selection c'