From d5e338e099d10944278a4331f0c2e852ffd54cd4 Mon Sep 17 00:00:00 2001 From: Agatha Lovelace Date: Fri, 7 Jul 2023 16:09:23 +0200 Subject: [PATCH] Configure brightness controls --- common/fragments/graphical/bspwm.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/fragments/graphical/bspwm.nix b/common/fragments/graphical/bspwm.nix index e483dd4..75c4d38 100644 --- a/common/fragments/graphical/bspwm.nix +++ b/common/fragments/graphical/bspwm.nix @@ -89,6 +89,9 @@ "XF86AudioMute" = "pamixer -t"; "XF86Audio{Prev,Next}" = "playerctl {previous,next}"; "XF86AudioPlay" = "playerctl play-pause"; + "XF86MonBrightness{Up,Down}" = '' + brightnessctl set 10%{+,-} && dunstify -r 98114 -h int:value:$(( $(brightnessctl get) * 100 / $(brightnessctl max) )) "Brightness set to:" + ''; # Switch outputs "super + o" = '' dunstify -r 112119 "Sound output switched to $(${pkgs.pads}/bin/pads next && ${pkgs.pads}/bin/pads list | rg '^\*' | choose 1:)"'';