From 502eb38ac431c75a825041fe35e6033b855772e4 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sat, 17 Apr 2021 17:41:23 +0200 Subject: [PATCH] feat(grfn/home): Bind brightness keys with brightnessctl thanks, flokli! Change-Id: I3256bc66984939dde1bb397c3c5007a8296670ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/3030 Reviewed-by: grfn Tested-by: BuildkiteCI --- users/grfn/system/home/modules/i3.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users/grfn/system/home/modules/i3.nix b/users/grfn/system/home/modules/i3.nix index d31089133..c56c9d556 100644 --- a/users/grfn/system/home/modules/i3.nix +++ b/users/grfn/system/home/modules/i3.nix @@ -142,6 +142,10 @@ in { # Lock Pause = "exec lock"; + # Brightness + "XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl -q s 5%-"; + "XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl -q s 5%+"; + # Sleep/hibernate # "${mod}+Escape" = "exec systemctl suspend"; # "${mod}+Shift+Escape" = "exec systemctl hibernate";