Migrate to chezmoi with per-host sway/waybar configs

- Restructure repo into chezmoi source layout (dot_ prefix)
- Add .chezmoi.toml.tmpl mapping hostname to hosttype (laptop/desktop)
- Template sway config.d fragments (outputs/inputs/binds) per host
- Template waybar config.jsonc with shared bar/module definitions
- Host-scope pulsemeeter (flow) and teams-for-linux (desktop hosts) via .chezmoiignore
- Trim install.sh package lists to configured software + config deps
- Remove stale kitty.conf.bak and untracked host fragments
This commit is contained in:
2026-08-01 22:37:00 -04:00
parent b550677af7
commit 7e6d30c3cd
71 changed files with 264 additions and 389 deletions
@@ -0,0 +1,14 @@
#!/bin/bash
OUTPUT="eDP-1"
CURRENT=$(swaymsg -rt get_outputs | jq -r ".[] | select(.name==\"$OUTPUT\") | .current_mode.refresh" | cut -d. -f1)
if [ "$CURRENT" -eq 120000 ]; then
swaymsg output "$OUTPUT" mode 2880x1920@60Hz
notify-send "Refresh Rate" "Switched to 60Hz" -t 2000
else
swaymsg output "$OUTPUT" mode 2880x1920@120Hz
notify-send "Refresh Rate" "Switched to 120Hz" -t 2000
fi
pkill -RTMIN+8 waybar