diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-03-18 15:52:33 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2026-03-18 15:52:33 -0400 |
| commit | 02b143f5342cc5354e669ca5e214d7ae464b1888 (patch) | |
| tree | c37aa38e4fa640e83f8e63bc7d67b796c9df83e9 /modules/sway | |
| parent | 3d4fdb83cca2d16d064eef02aaedb2fdc7e7ace7 (diff) | |
| download | home-02b143f5342cc5354e669ca5e214d7ae464b1888.tar.gz | |
modules: various fixes
Diffstat (limited to 'modules/sway')
| -rw-r--r-- | modules/sway/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/sway/default.nix b/modules/sway/default.nix index 7ff9b37..2f90122 100644 --- a/modules/sway/default.nix +++ b/modules/sway/default.nix @@ -47,6 +47,7 @@ in autotiling pamixer killall + brightnessctl ]; home.sessionVariables.NIXOS_OZONE_WL="1"; wayland.windowManager.sway = lib.mkIf cfg.enable { @@ -300,8 +301,10 @@ in "--locked XF86AudioLowerVolume" = "exec pamixer -ud 2 && pamixer --get-volume > $WOBSOCK && killall -s USR1 -r py3status"; "--locked XF86AudioMute" = ''exec pamixer --toggle-mute && ( [ "$(pamixer --get-mute)" = "true" ] && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK && killall -s USR1 -r py3status''; - "--locked XF86MonBrightnessUp" = "exec light -A 5 && light -G | cut -d'.' -f1 > $WOBSOCK"; - "--locked XF86MonBrightnessDown" = "exec light -U 5 && light -G | cut -d'.' -f1 > $WOBSOCK"; + "--locked XF86MonBrightnessUp" = "exec brightnessctl set 5%+ && brightnessctl -m | cut -d',' -f4 | tr -d '%' > $WOBSOCK"; + "--locked XF86MonBrightnessDown" = "exec brightnessctl set 5%- && brightnessctl -m | cut -d',' -f4 | tr -d '%' > $WOBSOCK"; + # "--locked XF86MonBrightnessUp" = "exec light -A 5 && light -G | cut -d'.' -f1 > $WOBSOCK"; + # "--locked XF86MonBrightnessDown" = "exec light -U 5 && light -G | cut -d'.' -f1 > $WOBSOCK"; }; startup = cfg.startup; |