From ef0ce891dd7906fadf95ffca8410434496de4171 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Wed, 27 Nov 2024 22:09:03 +0100 Subject: [PATCH] wm: Bind keys to control brightness --- wm/hm.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wm/hm.nix b/wm/hm.nix index 8371383..8f5cd0f 100644 --- a/wm/hm.nix +++ b/wm/hm.nix @@ -187,6 +187,9 @@ "XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl -p spotify next"; "XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl -p spotify previous"; + "XF86MonBrightnessDown" = "exec ${lib.getExe pkgs.brightnessctl} set 10%-"; + "XF86MonBrightnessUp" = "exec ${lib.getExe pkgs.brightnessctl} set 10%+"; + "${mod}+space" = "exec foot nvim +WikiIndex"; "${mod}+Shift+space" = "exec foot nvim +WikiPages";