all repos — dotfiles @ ef4e054f609a65e639255b16addda1c1ad656ec4

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.brightnessctl}/bin/brightnessctl s 100{-,+}";
14      "super + Escape" = "pkill -USR1 -x sxhkd";
15    };
16  };
17}