Convert tz setting to a QS menu

This commit is contained in:
David Heinemeier Hansson
2026-05-20 22:10:46 +02:00
parent f9a2685aab
commit 16193e7c93
6 changed files with 33 additions and 13 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
# omarchy:summary=Select and set the system timezone
# omarchy:group=menu
# omarchy:name=timezone
timezone=$(timedatectl list-timezones | omarchy-menu-select "Set timezone" -- --width 520 --maxheight 520) || exit 1
sudo timedatectl set-timezone "$timezone"
omarchy-shell -q Clock refresh
omarchy-notification-send "Timezone is now set to $timezone"
-8
View File
@@ -1,8 +0,0 @@
#!/bin/bash
# omarchy:summary=Select and set the system timezone
# omarchy:requires-sudo=true
timezone=$(timedatectl list-timezones | gum filter --height 20 --header "Set timezone") || exit 1
sudo timedatectl set-timezone "$timezone"
echo "Timezone is now set to $timezone"