aboutsummaryrefslogtreecommitdiff
path: root/.config/river/init
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/river/init
parentf2b5a6616688fe9264ee0d019f275b66e42dc668 (diff)
Added facility to save and restore brightness using brightnessctl
Diffstat (limited to '.config/river/init')
-rwxr-xr-x.config/river/init4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/river/init b/.config/river/init
index f290ce6..f53d494 100755
--- a/.config/river/init
+++ b/.config/river/init
@@ -191,8 +191,8 @@ do
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
# Control screen backlight brightness with light (https://github.com/haikarainen/light)
- riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl s +5'
- riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl s 5-'
+ riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl -s > ~/.cache/brightness s +5'
+ riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl -s > ~/.cache/brightness s 5-'
done
# auto starting apps