Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created May 6, 2018 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/efb29481c2e09f9b3ee52ccc4e778525 to your computer and use it in GitHub Desktop.
Save samueldr/efb29481c2e09f9b3ee52ccc4e778525 to your computer and use it in GitHub Desktop.
programs.light.enable = true;
services.actkbd = {
enable = true;
bindings = [
# Find the keycodes using:
# sudo actkbd -v9 -n -s -d /dev/input/event__
# Where `/dev/input/event__` is one of the descriptors
{ keys = [ 114 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -A 5"; }
{ keys = [ 115 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -U 5"; }
];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment