You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
change() {
|
|
|
|
echo "Changing timezone to $1"
|
|
|
|
sudo setup-timezone -z "$1"
|
|
|
|
pgrep -f "$(command -v sxmo_statusbar.sh)" | xargs kill -USR1
|
|
|
|
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 -c -l 10 -fn Terminus-20 -i
|
|
|
|
)"
|
|
|
|
st -e "$0" change "$T"
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ $# -gt 0 ]; then
|
|
|
|
"$@"
|
|
|
|
else
|
|
|
|
menu
|
|
|
|
fi
|