aboutsummaryrefslogtreecommitdiff
path: root/services/sxhkd.nix
blob: 8658875b7bfcd64ac2d5307698ad48a23bada56f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config
, pkgs
, theme
, ...
}:

{
  services.sxhkd = {
    enable = true;
    keybindings = {
      "XF86Audio{Lower,Raise}Volume" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%{-,+}";
      "XF86AudioMute" = "${pkgs.alsaUtils}/bin/amixer sset Master toggle";
      "XF86MonBrightness{Down,Up}" = "${pkgs.light}/bin/light -{U,A} 5";
      "super + Escape" = "pkill -USR1 -x sxhkd";
    };
  };
}