1
0
mirror of https://github.com/Dejvino/pinephone-sway-poc.git synced 2024-11-22 14:02:35 +00:00
pinephone-sway-poc/usr/local/bin/swayphone_backlightselect
2020-06-14 10:11:44 +02:00

18 lines
290 B
Bash
Executable File

#!/bin/bash
BACKLIGHT=~/.backlight
usleep 250000 # term stabilization
dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \
10 FULL \
9 :::: \
8 :::. \
7 ::: \
6 ::. \
5 :: \
4 :. \
3 MIN \
2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT`