diff --git a/hm_modules/sxhkd.nix b/hm_modules/sxhkd.nix index 0a7c8f2..969f1b6 100644 --- a/hm_modules/sxhkd.nix +++ b/hm_modules/sxhkd.nix @@ -23,6 +23,7 @@ fileManager = "nautilus"; emojiChooser = "rofimoji --skin-tone light -a copy"; yad = "${pkgs.yad}/bin/yad"; + notify = "${pkgs.libnotify}/bin/notify-send"; in { enable = true; @@ -68,10 +69,10 @@ "super + {_,shift + } w" = "bspc node -{c,k}"; "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"; - "{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}"; "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)` ''; }; };