Actkbd
services.actkbd.bindings
Key bindings for {command}actkbd
.
See {command}actkbd
{file}README
for documentation.
The example shows a piece of what {option}sound.mediaKeys.enable
does when enabled.
Type: list of (submodule)
Default
[ ]
Example
[ { keys = [ 113 ]; events = [ "key" ]; command = "${pkgs.alsa-utils}/bin/amixer -q set Master toggle"; }]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/actkbd.nix
services.actkbd.bindings.*.attributes
List of attributes.
Type: list of string
Default
["exec"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/actkbd.nix
services.actkbd.bindings.*.command
What to run.
Type: string
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/actkbd.nix
services.actkbd.bindings.*.events
List of events to match.
Type: list of (one of "key", "rep", "rel")
Default
["key"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/actkbd.nix
services.actkbd.bindings.*.keys
List of keycodes to match.
Type: list of signed integer
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/actkbd.nix
services.actkbd.enable
Whether to enable the {command}actkbd
key mapping daemon.
Turning this on will start an {command}actkbd
instance for every evdev input that has at least one key
(which is okay even for systems with tiny memory footprint,
since actkbd normally uses \<100 bytes of memory per
instance).
This allows binding keys globally without the need for e.g. X11.
Type: boolean
Default
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/actkbd.nix
services.actkbd.extraConfig
Literal contents to append to the end of actkbd configuration file.
Type: strings concatenated with "\n"
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/actkbd.nix