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

Backlight selector shows current value. Dialog menus wait for term init.

This commit is contained in:
Dejvino 2020-06-14 07:44:17 +02:00
parent 56993dd275
commit 03d8dcc333
3 changed files with 9 additions and 9 deletions

View File

@ -39,7 +39,7 @@
"format": " {:%e %b %Y}", // Icon: calendar-alt "format": " {:%e %b %Y}", // Icon: calendar-alt
//"tooltip-format": "{:%e %B %Y}" //"tooltip-format": "{:%e %B %Y}"
"tooltip": true, "tooltip": true,
"on-click": "termite -e swayphone_menuselect" "on-click": "termite -e sleep 1; swayphone_menuselect"
}, },
"battery": { "battery": {

View File

@ -134,7 +134,7 @@
"format": "{icon} {percent}% ", "format": "{icon} {percent}% ",
"states": [0,50], "states": [0,50],
"format-icons": ["", ""], "format-icons": ["", ""],
"on-click": "termite -e swayphone_backlightselect" "on-click": "termite -e sleep 1; swayphone_backlightselect"
}, },
"tray": { "tray": {
"icon-size": 22 "icon-size": 22

View File

@ -2,14 +2,14 @@
BACKLIGHT=~/.backlight BACKLIGHT=~/.backlight
dialog --menu Backlight 0 0 10 \ dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \
10 FULL \ 10 FULL \
9 . \ 9 :::: \
8 . \ 8 :::. \
7 . \ 7 ::: \
6 . \ 6 ::. \
5 . \ 5 :: \
4 . \ 4 :. \
3 MIN \ 3 MIN \
2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT` 2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT`