initial dotfiles setup
Profile-based dotfiles with switchable color themes. Structure: profiles/ with themes/ and config/ per profile.
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user