Skip to content

Triggerhappy

services.triggerhappy.bindings

Key bindings for {command}triggerhappy.

Type: list of (submodule)

Default

[ ]

Example

[ { keys = ["PLAYPAUSE"]; cmd = "${pkgs.mpc-cli}/bin/mpc -q toggle"; } ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/triggerhappy.nix

services.triggerhappy.bindings.*.cmd

What to run. Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/triggerhappy.nix

services.triggerhappy.bindings.*.event

Event to match. Type: one of "press", "hold", "release"

Default

"press"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/triggerhappy.nix

services.triggerhappy.bindings.*.keys

List of keys to match. Key names as defined in linux/input-event-codes.h Type: list of string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/triggerhappy.nix

services.triggerhappy.enable

Whether to enable the {command}triggerhappy hotkey daemon.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/triggerhappy.nix

services.triggerhappy.extraConfig

Literal contents to append to the end of {command}triggerhappy configuration file.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/triggerhappy.nix

services.triggerhappy.user

User account under which {command}triggerhappy runs.

Type: string

Default

"nobody"

Example

"root"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/triggerhappy.nix