From 13e032386b1fed5fb988cb4320e5fcfc67877606 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 13 Apr 2024 08:56:58 +0100 Subject: Switched the unmaintained light for brightnessctl --- .config/river/init | 7 +++++-- .config/yambar/config.yml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to '.config') 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: -- cgit v1.2.3