From a4526ccdef85a4d1596e74625c727bcfa67d925c Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Tue, 27 Oct 2026 17:16:43 +0100 Subject: niri: implement brightness keybinds --- share/home/niri.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'share/home') diff --git a/share/home/niri.nix b/share/home/niri.nix index 9b27a33..9c909a0 100644 --- a/share/home/niri.nix +++ b/share/home/niri.nix @@ -42,6 +42,7 @@ in pkgs.bemoji pkgs.grim pkgs.slurp + pkgs.brightnessctl ]; home.sessionVariables = { BEMOJI_PICKER_CMD = "${pkgs.tofi}/bin/tofi"; @@ -219,6 +220,14 @@ in allow-when-locked = true; action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }; + "XF86MonBrightnessUp" = { + allow-when-locked = true; + action = spawn "brightnessctl" "set" "10%+"; + }; + "XF86MonBrightnessDown" = { + allow-when-locked = true; + action = spawn "brightnessctl" "set" "10%-"; + }; # general window management "Mod+Shift+C".action = close-window; -- cgit v1.3.1