350fb4fe59
Profile-based dotfiles with switchable color themes. Structure: profiles/ with themes/ and config/ per profile.
21 lines
468 B
Bash
Executable File
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
|