mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Make setting timezone an explicit act
Since we can't always rely on geo guessing everywhere and it is slow
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
notify-send " Updating time and timezone..."
|
||||
sudo systemctl restart systemd-timesyncd
|
||||
sudo tzupdate
|
||||
new_timezone=$(timedatectl show -p Timezone --value)
|
||||
omarchy-restart-waybar
|
||||
notify-send " Time updated and timezone set to $new_timezone"
|
||||
@@ -395,7 +395,7 @@ show_update_menu() {
|
||||
*Process*) show_update_process_menu ;;
|
||||
*Hardware*) show_update_hardware_menu ;;
|
||||
*Firmware*) present_terminal omarchy-update-firmware ;;
|
||||
*Timezone*) omarchy-cmd-tzupdate ;;
|
||||
*Timezone*) present_terminal omarchy-tz-select ;;
|
||||
*Password*) show_update_password_menu ;;
|
||||
*) show_main_menu ;;
|
||||
esac
|
||||
|
||||
6
bin/omarchy-tz-select
Executable file
6
bin/omarchy-tz-select
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
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"
|
||||
omarchy-restart-waybar
|
||||
Reference in New Issue
Block a user