1
0
mirror of https://github.com/Dejvino/pinephone-sway-poc.git synced 2024-11-14 10:53:28 +00:00

Add backlight percentage

This commit is contained in:
Dejvino 2021-01-03 11:22:50 +01:00
parent ae72ef0e0d
commit a81ff33c76

View File

@ -4,14 +4,18 @@ BACKLIGHT=~/.backlight
usleep 250000 # term stabilization usleep 250000 # term stabilization
dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \ DEFAULT=$(((`pptk-backlight get_percent`+5)/10*10))
10 FULL \
9 :::: \ dialog --scrollbar --default-item $DEFAULT --menu Backlight 0 0 10 \
8 :::. \ 100 FULL \
7 ::: \ 90 :::: \
6 ::. \ 80 :::. \
5 :: \ 70 ::: \
4 :. \ 60 ::. \
3 MIN \ 50 :: \
2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT` 40 :. \
30 : \
20 . \
10 MIN \
2>$BACKLIGHT && pptk-backlight set_percent `cat $BACKLIGHT`