From c71cff0253067d1309fc8d0034b975618a43d541 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 26 May 2024 13:30:12 +0100 Subject: Added facility to save and restore brightness using brightnessctl --- .config/yambar/scripts/brightnesscontrol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/yambar') diff --git a/.config/yambar/scripts/brightnesscontrol b/.config/yambar/scripts/brightnesscontrol index 797a1db..1be6c9c 100755 --- a/.config/yambar/scripts/brightnesscontrol +++ b/.config/yambar/scripts/brightnesscontrol @@ -23,13 +23,13 @@ function send_notification { case $1 in up) # increase the backlight by 5% - brightnessctl s +5 + brightnessctl -s > ~/.cache/brightness s +5 send_notification #canberra-gtk-play -i audio-volume-change ;; down) # decrease the backlight by 5% - brightnessctl s 5- + brightnessctl -s > ~/.cache/brightness s 5- send_notification #canberra-gtk-play -i audio-volume-change ;; -- cgit v1.2.3