Switch to generic notification client

This commit is contained in:
Filippo Berto 2022-11-18 09:39:55 +01:00
parent 71007d66a4
commit 33dcccbb28
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -23,6 +23,7 @@
fileManager = "nautilus"; fileManager = "nautilus";
emojiChooser = "rofimoji --skin-tone light -a copy"; emojiChooser = "rofimoji --skin-tone light -a copy";
yad = "${pkgs.yad}/bin/yad"; yad = "${pkgs.yad}/bin/yad";
notify = "${pkgs.libnotify}/bin/notify-send";
in in
{ {
enable = true; enable = true;
@ -68,10 +69,10 @@
"super + {_,shift + } w" = "bspc node -{c,k}"; "super + {_,shift + } w" = "bspc node -{c,k}";
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}"; "super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
# "super + y" = "bspc node newest.marked.local -n newest.!automatic.local"; # "super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
"{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "pamixer {-d 2 -u,-t,-i 2 -u} && dunstify -r 1 Volume `pamixer --get-volume-human`"; "{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "pamixer {-d 2 -u,-t,-i 2 -u} && ${notify} -r 1 Volume `pamixer --get-volume-human`";
"XF86Audio{Next,Play,Prev}" = "playerctl {next,play-pause,previous}"; "XF86Audio{Next,Play,Prev}" = "playerctl {next,play-pause,previous}";
"XF86MonBrightness{Up,Down}" = '' "XF86MonBrightness{Up,Down}" = ''
xbacklight -{inc,dec} 10 && dunstify -r 2 Luminosità `printf "%.0f" $(xbacklight -get)` xbacklight -{inc,dec} 10 && ${notify} -r 2 Luminosità `printf "%.0f" $(xbacklight -get)`
''; '';
}; };
}; };