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:
parent
b86b152e6e
commit
ffd359165e
3 changed files with 41 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue