Allow updating timezone from right-clicking the clock

Closes #314
This commit is contained in:
David Heinemeier Hansson
2025-07-26 11:15:06 -04:00
parent 51e2fa8598
commit eace29af7d
4 changed files with 21 additions and 1 deletions

View File

@ -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 <<EOF
%wheel ALL=(root) NOPASSWD: /usr/bin/tzupdate, /usr/bin/timedatectl
EOF
sudo chmod 0440 /etc/sudoers.d/omarchy-tzupdate
fi