Refactor brightness handling code

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2024-08-06 18:40:24 +02:00
parent f0869f0e13
commit 096b1a7d44
3 changed files with 11 additions and 21 deletions

View File

@@ -53,18 +53,18 @@ border_fg = 8
# If set to null, none will be shown
box_title = null
# Brightness +/- percentage in one step
brightness_change = 10
# Brightness increase command
brightness_down_cmd = $PREFIX_DIRECTORY/bin/brightnessctl -q s 10%-
# Brightness decrease key
brightness_down_key = F5
# Brightness increase command
brightness_up_cmd = $PREFIX_DIRECTORY/bin/brightnessctl -q s +10%
# Brightness increase key
brightness_up_key = F6
# Brightness control command
brightnessctl = $PREFIX_DIRECTORY/bin/brightnessctl
# Erase password input on failure
clear_password = false