diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-26 17:36:38 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-26 17:36:38 -0600 |
| commit | dada2f255daaa2fb493ec8c7d47e2a8123aea494 (patch) | |
| tree | 0c0eeb84bb7b6e66a2d7f41cdfd061b25f80cc14 /dotfiles/common/.local/bin/timezone-change | |
| parent | d50e5955837788fc69b4d5bc74cb574b859ed31a (diff) | |
refactor(dotfiles): rename system/ to common/ and remove unused configs
Rename dotfiles/system to dotfiles/common for clarity - indicates
shared dotfiles used across all desktop environments (DWM, Hyprland).
Removed config directories for uninstalled applications:
- ghostty (using different terminal)
- lf (using ranger instead)
- mopidy (using mpd instead)
- nitrogen (X11-only, obsolete for Wayland)
- pychess (not installed)
- JetBrains (not installed via archsetup)
- youtube-dl (using yt-dlp with different config location)
Kept audacious config for potential future use.
Updated all references in archsetup, CLAUDE.md, todo.org, and
validation.sh.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'dotfiles/common/.local/bin/timezone-change')
| -rwxr-xr-x | dotfiles/common/.local/bin/timezone-change | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/dotfiles/common/.local/bin/timezone-change b/dotfiles/common/.local/bin/timezone-change new file mode 100755 index 0000000..c5a4e5a --- /dev/null +++ b/dotfiles/common/.local/bin/timezone-change @@ -0,0 +1,68 @@ +#!/usr/bin/env bash +# Craig Jennings <c@cjennings.net> + +# Convenience script since I can't ever remember the two part TZ identifier to +# change timezones. + +case $1 in + "eastern"|"ny"|"nyc"|"boston"|"dc") + sudo timedatectl set-timezone "US/Eastern" + ;; + "central"|"nola"|"home"|"chicago") + sudo timedatectl set-timezone "US/Central" + ;; + "mountain") + sudo timedatectl set-timezone "US/Mountain" + ;; + "pacific"|"sf"|"oakland"|"berkeley"|"hb"|"california") + sudo timedatectl set-timezone "US/Pacific" + ;; + "london"|"england"|"britain"|"gb") + sudo timedatectl set-timezone "Europe/London" + ;; + "hawaii") + sudo timedatectl set-timezone "US/Hawaii" + ;; + "armenia"|"yerevan") + sudo timedatectl set-timezone "Asia/Yerevan" + ;; + "greece"|"athens") + sudo timedatectl set-timezone "Europe/Athens" + ;; + "germany"|"berlin") + sudo timedatectl set-timezone "Europe/Berlin" + ;; + "turkey"|"istanbul") + sudo timedatectl set-timezone "Europe/Istanbul" + ;; + "portugal"|"lisbon") + sudo timedatectl set-timezone "Europe/Portugal" + ;; + "spain"|"madrid") + sudo timedatectl set-timezone "Europe/Madrid" + ;; + "france"|"paris") + sudo timedatectl set-timezone "Europe/Paris" + ;; + "italy"|"rome"|"naples"|"ischia") + sudo timedatectl set-timezone "Europe/Rome" + ;; + "austria"|"vienna") + sudo timedatectl set-timezone "Europe/Vienna" + ;; + "japan"|"tokyo") + sudo timedatectl set-timezone "Asia/Tokyo" + ;; + "jamaica") + sudo timedatectl set-timezone "America/Jamaica" + ;; + "st_lucia"|"grenadines"|"st_vincent"|"nevis"|"st_kitts"|"puerto_rico") + sudo timedatectl set-timezone "America/Puerto_Rico" + ;; + *) + echo + "Invalid option chosen." + echo + "Some valid options are: eastern, central, pacific, rome, london, st_lucia, italy, france, spain ." + ;; +esac |
