Files
tekki 350fb4fe59 initial dotfiles setup
Profile-based dotfiles with switchable color themes.
Structure: profiles/ with themes/ and config/ per profile.
2026-04-21 17:41:08 +02:00

21 lines
468 B
Bash
Executable File

#!/bin/bash
# Usage: switch-theme.sh <theme-name>
PROFILE_DIR=$(readlink "$HOME/.active_profile" 2>/dev/null)
THEME="${1:-}"
if [[ -z "$THEME" ]]; then
echo "Available themes:"
ls "$PROFILE_DIR/themes/"
exit 1
fi
if [[ ! -d "$PROFILE_DIR/themes/$THEME" ]]; then
echo "Theme not found: $THEME"
echo "Available themes:"
ls "$PROFILE_DIR/themes/"
exit 1
fi
ln -sfn "$PROFILE_DIR/themes/$THEME" "$HOME/.active_theme"
~/.config/wal/reload.sh