nix/services/sxhkd.nix (view raw)
1{ config
2, pkgs
3, theme
4, ...
5}:
6
7{
8 services.sxhkd = {
9 enable = true;
10 keybindings = {
11 "XF86Audio{Lower,Raise}Volume" = "${pkgs.pamixer}/bin/pamixer -{d,i} 2";
12 "XF86AudioMute" = "${pkgs.pamixer}/bin/pamixer -t";
13 "XF86MonBrightness{Down,Up}" = "${pkgs.brightnessctl}/bin/brightnessctl s 10{-,+}";
14 "XF86KbdBrightness{Down,Up}" = "${pkgs.brightnessctl}/bin/brightnessctl --device='asus::kbd_backlight' s 1{-,+}";
15 "XF86AudioMicMute" = "${pkgs.alsaUtils}/bin/amixer set Capture toggle";
16 "super + Escape" = "pkill -USR1 -x sxhkd";
17 };
18 };
19}