diff --git a/bin/omarchy-cmd-tzupdate b/bin/omarchy-cmd-tzupdate new file mode 100755 index 0000000..1c5d0ac --- /dev/null +++ b/bin/omarchy-cmd-tzupdate @@ -0,0 +1,5 @@ +#!/bin/bash + +sudo tzupdate +new_timezone=$(timedatectl show -p Timezone --value) +notify-send "Timezone has been set to $new_timezone" diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 25f4818..2c554f7 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -50,7 +50,8 @@ "clock": { "format": "{:%A %H:%M}", "format-alt": "{:%d %B W%V %Y}", - "tooltip": false + "tooltip": false, + "on-click-right": "omarchy-cmd-tzupdate" }, "network": { "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"], diff --git a/install/config/timezones.sh b/install/config/timezones.sh new file mode 100644 index 0000000..df796e2 --- /dev/null +++ b/install/config/timezones.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [[ ! -f /etc/sudoers.d/omarchy-tzupdate ]]; then + yay -S --noconfirm --needed tzupdate + sudo tee /etc/sudoers.d/omarchy-tzupdate >/dev/null <