From 6130ee73bec23e090bcdb14453120ccf672b3b1e Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sat, 26 Oct 2024 20:19:53 +0100 Subject: [PATCH] nixos/tower: Add brightness keybinds --- nixos/boxes/tower/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/boxes/tower/default.nix b/nixos/boxes/tower/default.nix index e16ac28..1ef4e33 100644 --- a/nixos/boxes/tower/default.nix +++ b/nixos/boxes/tower/default.nix @@ -190,6 +190,10 @@ config = { input."1:1:AT_Translated_Set_2_keyboard".xkb_layout = "ie"; output.eDP-1.scale = "1"; + keybindings = lib.mkOptionDefault { + "XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-"; + "XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%"; + }; }; };