Iwakura/hardware/iwakura/keyboard.nix
2021-04-27 22:47:09 +00:00

28 lines
725 B
Nix

{ pkgs, ... }:
{
# to do: make this parameterised
services.actkbd = {
enable = true;
bindings = [
{ keys = [ 113 ];
events = [ "key" ];
command =
"/run/current-system/sw/bin/runuser -l thorn -c '${pkgs.alsaUtils}/bin/amixer -q set Master toggle'";
}
{ keys = [ 114 ];
events = [ "key" "rep" ];
command =
"/run/current-system/sw/bin/runuser -l thorn -c '${pkgs.alsaUtils}/bin/amixer -q -c 0 set Master 4- unmute'";
}
{ keys = [ 115 ];
events = [ "key" "rep" ];
command =
"/run/current-system/sw/bin/runuser -l thorn -c '${pkgs.alsaUtils}/bin/amixer -q -c 0 set Master 4+ unmute'";
}
];
};
}