nix/home/config/sway/module/Brightness.nix

9 lines
210 B
Nix

{ config, ... }: let
step = config.setting.step.brightness;
in {
text = ''
bindsym XF86MonBrightnessDown exec light -U ${toString step}
bindsym XF86MonBrightnessUp exec light -A ${toString step}
'';
}