diff --git a/common/home-manager/wayland/sway.nix b/common/home-manager/wayland/sway.nix index 2830f42..1862560 100644 --- a/common/home-manager/wayland/sway.nix +++ b/common/home-manager/wayland/sway.nix @@ -75,8 +75,8 @@ in { audio-disp = ''pamixer --get-volume > $SWAYSOCK.volume.wob''; audio = cmd: "exec pamixer ${cmd} && ${audio-disp}"; # Brightness using brightnessctl and wob - brightness-disp = ''brightnessctl -m | cut -d "," -f4 | tr -d "%" > $SWAYSOCK.brightness.wob''; - brightness = x: "exec brightnessctl set ${x} && ${brightness-disp}"; + brightness-disp = ''brightnessctl -e -m | cut -d "," -f4 | tr -d "%" > $SWAYSOCK.brightness.wob''; + brightness = x: "exec brightnessctl -e set ${x} && ${brightness-disp}"; # Play controls using playerctl playerctl = cmd: "exec playerctl ${cmd}"; # Grim screenshot file name