Add backlight select
This commit is contained in:
Regular → Executable
+2
-1
@@ -133,7 +133,8 @@
|
||||
// "device": "acpi_video1",
|
||||
"format": "{icon} {percent}% ",
|
||||
"states": [0,50],
|
||||
"format-icons": ["", ""]
|
||||
"format-icons": ["", ""],
|
||||
"on-click": "termite -e swayphone_backlightselect"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 22
|
||||
|
||||
Executable
+16
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user