aboutsummaryrefslogtreecommitdiffstats
path: root/modules/graphical/sxhkd/keybindings/brightnessctl.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/graphical/sxhkd/keybindings/brightnessctl.nix')
-rw-r--r--modules/graphical/sxhkd/keybindings/brightnessctl.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/graphical/sxhkd/keybindings/brightnessctl.nix b/modules/graphical/sxhkd/keybindings/brightnessctl.nix
new file mode 100644
index 0000000..acb4ea2
--- /dev/null
+++ b/modules/graphical/sxhkd/keybindings/brightnessctl.nix
@@ -0,0 +1,15 @@
+{ createKeybindingBase, pkgs, lib }:
+
+let
+ brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
+in lib.mkMerge [
+ (createKeybindingBase
+ "XF86MonBrightnessDown"
+ "Decrease brightness."
+ "${brightnessctl} set 5%-")
+
+ (createKeybindingBase
+ "XF86MonBrightnessUp"
+ "Increase brightness."
+ "${brightnessctl} set +5%")
+]