aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-04-13 08:56:58 +0100
committerJustine Smithies <justine@smithies.me.uk>2024-04-13 08:56:58 +0100
commit13e032386b1fed5fb988cb4320e5fcfc67877606 (patch)
treed5db18a850ca61845e38994dd05e756130b2c4fd
parent9e2f233aa5cbeb2669c3bcdfe4edee72dc49da60 (diff)
Switched the unmaintained light for brightnessctl
-rwxr-xr-x.config/river/init7
-rw-r--r--.config/yambar/config.yml2
2 files changed, 6 insertions, 3 deletions
diff --git a/.config/river/init b/.config/river/init
index 1da7628..f290ce6 100755
--- a/.config/river/init
+++ b/.config/river/init
@@ -46,6 +46,9 @@ riverctl map normal Super B spawn "killall yambar || ~/.config/yambar/scripts/ya
# Power Menu
riverctl map normal Control+Super P spawn "~/.local/bin/powermenu"
+# Emoji Menu
+riverctl map normal Super E spawn "~/.local/bin/emoji-menu"
+
# Take a screenshot of the active output
riverctl map normal None Print spawn '~/.config/river/scripts/screenshot.sh'
@@ -188,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 'light -A 5; light -O'
- riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 5; light -O'
+ riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl s +5'
+ riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl s 5-'
done
# auto starting apps
diff --git a/.config/yambar/config.yml b/.config/yambar/config.yml
index d088f05..85862b0 100644
--- a/.config/yambar/config.yml
+++ b/.config/yambar/config.yml
@@ -141,7 +141,7 @@ bar:
<<: *volume
- backlight:
name: amdgpu_bl0
- content: [ string: {text: , font: *nerdfont}, string: {text: "{percent}%", on-click: { left: sh -c "light -U 5", right: sh -c "light -A 5"}}]
+ content: [ string: {text: , font: *nerdfont}, string: {text: "{percent}%", on-click: { left: sh -c "brightnessctl s 5-", right: sh -c "brightnessctl s +5"}}]
- network:
name: enp5s0
content: