mirror of
https://github.com/Dejvino/pinephone-sway-poc.git
synced 2024-11-14 02:47:28 +00:00
Fixed backlight and menuselect delays.
This commit is contained in:
parent
03d8dcc333
commit
2786009b76
@ -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 sleep 1; swayphone_menuselect"
|
"on-click": "termite -e swayphone_menuselect"
|
||||||
},
|
},
|
||||||
|
|
||||||
"battery": {
|
"battery": {
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
"format": "{icon} {percent}% ",
|
"format": "{icon} {percent}% ",
|
||||||
"states": [0,50],
|
"states": [0,50],
|
||||||
"format-icons": ["", ""],
|
"format-icons": ["", ""],
|
||||||
"on-click": "termite -e sleep 1; swayphone_backlightselect"
|
"on-click": "termite -e swayphone_backlightselect"
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 22
|
"icon-size": 22
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
BACKLIGHT=~/.backlight
|
BACKLIGHT=~/.backlight
|
||||||
|
|
||||||
|
usleep 250000 # term stabilization
|
||||||
|
|
||||||
dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \
|
dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \
|
||||||
10 FULL \
|
10 FULL \
|
||||||
9 :::: \
|
9 :::: \
|
||||||
|
@ -16,5 +16,7 @@ then
|
|||||||
echo '"sudo poweroff" Shutdown' >> $MENUOPTIONS
|
echo '"sudo poweroff" Shutdown' >> $MENUOPTIONS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
usleep 250000 # term stabilization
|
||||||
|
|
||||||
cat $MENUOPTIONS | xargs dialog --menu EXECUTE $HEIGHT $WIDTH $LINES 2>$MENUSELECT && swaymsg exec "`cat $MENUSELECT`"
|
cat $MENUOPTIONS | xargs dialog --menu EXECUTE $HEIGHT $WIDTH $LINES 2>$MENUSELECT && swaymsg exec "`cat $MENUSELECT`"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user