Files
sxmo-utils/scripts/core/sxmo_timezonechange.sh
Stacy Harper 8a27933c47 SWMO - SXMO over Wayland
This is a huge patch for Swmo, Sxmo over Sway.

It is Dwm backward compatible so dwm users should not expect regressions.

If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone.

This commit also contains:
    * Make the modemmonitor bullet proof
    * various other smaller fixes

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-22 13:23:22 +02:00

26 lines
377 B
Bash
Executable File

#!/usr/bin/env sh
change() {
echo "Changing timezone to $1"
sudo setup-timezone -z "$1"
sxmo_statusbarupdate.sh
echo Timezone changed ok
read -r
}
menu() {
T="$(
find /usr/share/zoneinfo -type f |
sed 's#^/usr/share/zoneinfo/##g' |
sort |
sxmo_dmenu_with_kb.sh -p Timezone -i
)"
sxmo_terminal.sh "$0" change "$T"
}
if [ $# -gt 0 ]; then
"$@"
else
menu
fi