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 ;;
|
*Process*) show_update_process_menu ;;
|
||||||
*Hardware*) show_update_hardware_menu ;;
|
*Hardware*) show_update_hardware_menu ;;
|
||||||
*Firmware*) present_terminal omarchy-update-firmware ;;
|
*Firmware*) present_terminal omarchy-update-firmware ;;
|
||||||
*Timezone*) omarchy-cmd-tzupdate ;;
|
*Timezone*) present_terminal omarchy-tz-select ;;
|
||||||
*Password*) show_update_password_menu ;;
|
*Password*) show_update_password_menu ;;
|
||||||
*) show_main_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
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
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
"format": "{:L%A %H:%M}",
|
"format": "{:L%A %H:%M}",
|
||||||
"format-alt": "{:L%d %B W%V %Y}",
|
"format-alt": "{:L%d %B W%V %Y}",
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-click-right": "omarchy-cmd-tzupdate"
|
"on-click-right": "omarchy-launch-floating-terminal-with-presentation omarchy-tz-select"
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format-icons": ["", "", "", "", ""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
|
|||||||
3
migrations/1760693222.sh
Normal file
3
migrations/1760693222.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Use explicit timezone selector when right-clicking on clock"
|
||||||
|
|
||||||
|
sed -i 's/omarchy-cmd-tzupdate/omarchy-launch-floating-terminal-with-presentation omarchy-tz-select/g' ~/.config/waybar/config.jsonc
|
||||||
Reference in New Issue
Block a user