mirror of
https://github.com/Dejvino/pinephone-sway-poc.git
synced 2024-11-14 10:53:28 +00:00
13 lines
265 B
Plaintext
13 lines
265 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
BACKLIGHT_FILE=~/.backlight
|
||
|
BACKLIGHT_MIN=3
|
||
|
|
||
|
pptk-led set red 0
|
||
|
pptk-cpu-sleep disable
|
||
|
|
||
|
# restore last saved backlight level
|
||
|
BACKLIGHT=$((`cat $BACKLIGHT_FILE` >= $BACKLIGHT_MIN ? `cat $BACKLIGHT_FILE` : $BACKLIGHT_MIN))
|
||
|
pptk-backlight set $BACKLIGHT
|
||
|
|