sxmo-utils/scripts/core/sxmo_brightness.sh
Stacy Harper a1a6c3eb43 Set minimum brightness to 5%
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 12:40:47 +02:00

29 lines
297 B
Bash
Executable file

#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
notify() {
light | xargs notify-send
}
setvalue() {
light -S "$1"
}
up() {
light -A 5
}
down() {
light -N 5
light -U 5
}
getvalue() {
light
}
"$@"
notify