aboutsummaryrefslogtreecommitdiff
path: root/.config/yambar/scripts
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-05-26 13:30:12 +0100
committerJustine Smithies <justine@smithies.me.uk>2024-05-26 13:30:12 +0100
commitc71cff0253067d1309fc8d0034b975618a43d541 (patch)
treee7b121f7b45cba26795ea67c36c58082d05fdea5 /.config/yambar/scripts
parentf2b5a6616688fe9264ee0d019f275b66e42dc668 (diff)
Added facility to save and restore brightness using brightnessctl
Diffstat (limited to '.config/yambar/scripts')
-rwxr-xr-x.config/yambar/scripts/brightnesscontrol4
1 files changed, 2 insertions, 2 deletions
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
;;