diff options
author | Minijackson <minijackson@riseup.net> | 2024-03-29 15:54:10 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-03-29 15:54:10 +0100 |
commit | c09af559f0663f46c119e7d08e05a7e37cd1bf79 (patch) | |
tree | 558b629c3989727c1b7d44000fd561c20118a8b4 | |
parent | beefe16e256cdf790ab784fd4eccef8388ca83c8 (diff) | |
download | nixos-config-reborn-c09af559f0663f46c119e7d08e05a7e37cd1bf79.tar.gz nixos-config-reborn-c09af559f0663f46c119e7d08e05a7e37cd1bf79.zip |
usecases/sway: add support for brightness keybindings
-rw-r--r-- | usecases/desktop/graphical/sway.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usecases/desktop/graphical/sway.nix b/usecases/desktop/graphical/sway.nix index 1e1721e..cbe8d9d 100644 --- a/usecases/desktop/graphical/sway.nix +++ b/usecases/desktop/graphical/sway.nix | |||
@@ -162,6 +162,9 @@ _inputs: { | |||
162 | "XF86AudioRaiseVolume" = "exec ${pkgs.pamixer}/bin/pamixer -i 5"; | 162 | "XF86AudioRaiseVolume" = "exec ${pkgs.pamixer}/bin/pamixer -i 5"; |
163 | "XF86AudioLowerVolume" = "exec ${pkgs.pamixer}/bin/pamixer -d 5"; | 163 | "XF86AudioLowerVolume" = "exec ${pkgs.pamixer}/bin/pamixer -d 5"; |
164 | "XF86AudioMute" = "exec ${pkgs.pamixer}/bin/pamixer -t"; | 164 | "XF86AudioMute" = "exec ${pkgs.pamixer}/bin/pamixer -t"; |
165 | |||
166 | "XF86MonBrightnessUp" = "exec ${lib.getExe pkgs.brightnessctl} set -- +10%"; | ||
167 | "XF86MonBrightnessDown" = "exec ${lib.getExe pkgs.brightnessctl} set -- -10%"; | ||
165 | }; | 168 | }; |
166 | 169 | ||
167 | menu = '' | 170 | menu = '' |