all repos — dotfiles @ 1193fa3e65b00a35e0d50f136fe0ae09b0bd3bde

my *nix dotfiles

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.alsaUtils}/bin/amixer sset Master 2%{-,+}";
12      "XF86AudioMute" = "${pkgs.alsaUtils}/bin/amixer sset Master toggle";
13      "XF86MonBrightness{Down,Up}" = "${pkgs.light}/bin/light -{U,A} 50";
14      "super + Escape" = "pkill -USR1 -x sxhkd";
15    };
16  };
17}