all repos — dotfiles @ 4b62ddc7a2b8e7b49231d38586f9966331b7ec8e

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 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}