1
0
mirror of https://github.com/Dejvino/pinephone-sway-poc.git synced 2024-09-21 06:33:37 +00:00
pinephone-sway-poc/usr/local/bin/swayphone_backlightselect

18 lines
290 B
Plaintext
Raw Normal View History

2020-05-31 01:21:22 +00:00
#!/bin/bash
BACKLIGHT=~/.backlight
2020-06-14 08:11:44 +00:00
usleep 250000 # term stabilization
dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \
2020-05-31 01:21:22 +00:00
10 FULL \
9 :::: \
8 :::. \
7 ::: \
6 ::. \
5 :: \
4 :. \
2020-05-31 07:11:20 +00:00
3 MIN \
2020-05-31 01:21:22 +00:00
2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT`