This website works better with JavaScript.
Home
Explore
Help
Sign In
dejvino
/
pinephone-sway-poc
mirror of
https://github.com/Dejvino/pinephone-sway-poc
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Fixed backlight and menuselect delays.
pull/1/head
Dejvino
3 years ago
parent
03d8dcc333
commit
2786009b76
4 changed files
with
6 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
home/config/waybar/config_0
+1
-1
home/config/waybar/config_1
+2
-0
usr/local/bin/swayphone_backlightselect
+2
-0
usr/local/bin/swayphone_menuselect
+ 1
- 1
home/config/waybar/config_0
View File
@@ -39,7 +39,7 @@
"format": " {:%e %b %Y}", // Icon: calendar-alt
//"tooltip-format": "{:%e %B %Y}"
"tooltip": true,
"on-click": "termite -e s
leep 1; s
wayphone_menuselect"
"on-click": "termite -e swayphone_menuselect"
},
"battery": {
+ 1
- 1
home/config/waybar/config_1
View File
@@ -134,7 +134,7 @@
"format": "{icon} {percent}% ",
"states": [0,50],
"format-icons": ["", ""],
"on-click": "termite -e s
leep 1; s
wayphone_backlightselect"
"on-click": "termite -e swayphone_backlightselect"
},
"tray": {
"icon-size": 22
+ 2
- 0
usr/local/bin/swayphone_backlightselect
View File
@@ -2,6 +2,8 @@
BACKLIGHT=~/.backlight
usleep 250000 # term stabilization
dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \
10 FULL \
9 :::: \
+ 2
- 0
usr/local/bin/swayphone_menuselect
View File
@@ -16,5 +16,7 @@ then
echo '"sudo poweroff" Shutdown' >> $MENUOPTIONS
fi
usleep 250000 # term stabilization
cat $MENUOPTIONS | xargs dialog --menu EXECUTE $HEIGHT $WIDTH $LINES 2>$MENUSELECT && swaymsg exec "`cat $MENUSELECT`"
Write
Preview
Loading…
Cancel
Save