mirror of
https://github.com/Dejvino/pinephone-sway-poc.git
synced 2024-11-04 23:40:03 +00:00
Add backlight select
This commit is contained in:
parent
707d0c77c2
commit
a3f826a5ac
3
home/config/waybar/config_1
Normal file → Executable file
3
home/config/waybar/config_1
Normal file → Executable 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
|
||||||
|
16
usr/local/bin/swayphone_backlightselect
Executable file
16
usr/local/bin/swayphone_backlightselect
Executable 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`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user