example/init: Replace light with brightnessctl

Change screen backlight brightness command to brightnessctl(1) as
light(1) repo has been deleted.
This commit is contained in:
Hugo Machet 2024-03-05 11:51:02 +01:00 committed by Isaac Freund
parent c4d6fab902
commit f6cc4de884
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -137,9 +137,9 @@ do
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous' riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
riverctl map $mode None XF86AudioNext spawn 'playerctl next' riverctl map $mode None XF86AudioNext spawn 'playerctl next'
# Control screen backlight brightness with light (https://github.com/haikarainen/light) # Control screen backlight brightness with brightnessctl (https://github.com/Hummer12007/brightnessctl)
riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 5' riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl set +5%'
riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 5' riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl set 5%-'
done done
# Set background and border color # Set background and border color