From d9f4f2a7a54d569d1bd3924611fbafaf6b3d2742 Mon Sep 17 00:00:00 2001 From: kiana-S Date: Mon, 6 Jun 2022 17:48:20 -0400 Subject: [PATCH] Set brightness to exponential scale --- common/home-manager/wayland/sway.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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