Style fixes for autorotate script for consistency with other scripts

Seperate autorotate enable/disable into fns.
Also show which state you're toggling from/to for autorotate in Config menu
This commit is contained in:
Miles Alan 2020-08-28 19:34:59 -05:00
parent b86b152e6e
commit ffd359165e
3 changed files with 41 additions and 38 deletions

View file

@ -66,8 +66,11 @@ programchoicesinit() {
Bar Toggle ^ 1 ^ key Alt+b
Invert Colors ^ 1 ^ xcalib -a -invert
Change Timezone ^ 1 ^ sxmo_timezonechange.sh
Toggle Autorotate ^ 0 ^ sxmo_autorotate.sh
Rotate ^ 1 ^ sxmo_rotate.sh rotate
Autorotate $(
pgrep -f "$(command -v sxmo_rotateautotoggle.sh)" > /dev/null &&
printf %b "On → Off ^ 0 ^ sxmo_rotateautotoggle.sh &" || printf %b "Off → On ^ 0 ^ sxmo_rotateautotoggle.sh &"
)
Rotate ^ 1 ^ sxmo_rotate.sh rotate
Upgrade Pkgs ^ 0 ^ st -e sxmo_upgrade.sh
"
WINNAME=Config