mirror of
https://github.com/Dejvino/pinephone-sway-poc.git
synced 2024-11-05 07:40:04 +00:00
Add backlight percentage
This commit is contained in:
parent
ae72ef0e0d
commit
a81ff33c76
@ -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`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user