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

Add backlight select

This commit is contained in:
Dejvino 2020-05-31 03:21:22 +02:00
parent 707d0c77c2
commit a3f826a5ac
2 changed files with 18 additions and 1 deletions

3
home/config/waybar/config_1 Normal file → Executable file
View File

@ -133,7 +133,8 @@
// "device": "acpi_video1", // "device": "acpi_video1",
"format": "{icon} {percent}% ", "format": "{icon} {percent}% ",
"states": [0,50], "states": [0,50],
"format-icons": ["", ""] "format-icons": ["", ""],
"on-click": "termite -e swayphone_backlightselect"
}, },
"tray": { "tray": {
"icon-size": 22 "icon-size": 22

View File

@ -0,0 +1,16 @@
#!/bin/bash
BACKLIGHT=~/.backlight
dialog --menu EXECUTE 20 40 12 \
10 FULL \
9 . \
8 . \
7 . \
6 . \
5 . \
4 . \
3 . \
2 MIN \
2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT`