about summary refs log tree commit diff
path: root/users/grfn/system/home
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-04-17T15·41+0200
committergrfn <grfn@gws.fyi>2021-04-18T15·29+0000
commit502eb38ac431c75a825041fe35e6033b855772e4 (patch)
tree988cd9d2f9be6c6b5765b7c35fe23ddbaf5c6deb /users/grfn/system/home
parent7e74e17931d73242881248c33b512e79b6ccc6e7 (diff)
feat(grfn/home): Bind brightness keys with brightnessctl r/2525
thanks, flokli!

Change-Id: I3256bc66984939dde1bb397c3c5007a8296670ab
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3030
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/system/home')
-rw-r--r--users/grfn/system/home/modules/i3.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/grfn/system/home/modules/i3.nix b/users/grfn/system/home/modules/i3.nix
index d31089133c2d..c56c9d556ba8 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";