- 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
15 lines
419 B
Bash
15 lines
419 B
Bash
#!/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
|