Configure brightness controls

This commit is contained in:
Agatha Lovelace 2023-07-07 16:09:23 +02:00
parent 4a66006d75
commit d5e338e099
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
1 changed files with 3 additions and 0 deletions

View File

@ -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:)"'';