~mil/sxmo-utils

ref: 2c4da8fa0b75bdc5555bf5d827ff82339b1f3934 sxmo-utils/scripts/core/sxmo_brightness.sh -rwxr-xr-x 297 bytes
2c4da8faMaxim Karasev Make led blink more noticable a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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