Padova · IT
● EVERGREEN NOTE dotfilesthemingscripting

Theme Switcher Script

The compiler for the Theme Engine — envsubst, pywal, reload.

The compiler for Theme Engine. Reads theme.conf, injects into .tpl files, syncs pywal, reloads bar + WM.

Core

source "$THEME_DIR/$THEME/theme.conf"
envsubst < templates/hypr-theme.conf.tpl   > "$HYPR_THEME"
envsubst < templates/waybar-style.css.tpl  > "$WAYBAR_CSS"
wal -i "$WALLPAPER" -n -q
pkill -SIGUSR2 waybar
hyprctl reload

Adding a theme

  1. mkdir themes/<name>
  2. Add theme.conf (must export all required vars — see Theme Engine)
  3. Drop wallpaper.png
  4. select.sh picks it up automatically

Bind

SUPER + Uselect.sh (wofi picker → switch.sh <theme>)