sxmo_brightness.sh quiet brightnessctl

This commit is contained in:
Willow Barraco
2023-08-11 11:06:00 +02:00
parent 4394816f16
commit 3ecbf9a727

View File

@@ -17,11 +17,11 @@ notify() {
} }
setvalue() { setvalue() {
brightnessctl set "$1"% brightnessctl -q set "$1"%
} }
up() { up() {
brightnessctl set 5%+ brightnessctl -q set 5%+
} }
down() { down() {
@@ -29,9 +29,9 @@ down() {
# brightnessctl --min-value "${SXMO_MIN_BRIGHTNESS:-5}" set 5%- # brightnessctl --min-value "${SXMO_MIN_BRIGHTNESS:-5}" set 5%-
if [ "$(getvalue)" -gt "${SXMO_MIN_BRIGHTNESS:-5}" ]; then if [ "$(getvalue)" -gt "${SXMO_MIN_BRIGHTNESS:-5}" ]; then
brightnessctl set 5%- brightnessctl -q set 5%-
else else
brightnessctl set "${SXMO_MIN_BRIGHTNESS:-5}"% brightnessctl -q set "${SXMO_MIN_BRIGHTNESS:-5}"%
fi fi
} }