350fb4fe59
Profile-based dotfiles with switchable color themes. Structure: profiles/ with themes/ and config/ per profile.
21 lines
417 B
Bash
Executable File
21 lines
417 B
Bash
Executable File
#!/bin/bash
|
|
# Usage: switch-profile.sh <profile-name>
|
|
PROFILE="${1:-}"
|
|
|
|
if [[ -z "$PROFILE" ]]; then
|
|
echo "Available profiles:"
|
|
ls "$HOME/profiles/"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ! -d "$HOME/profiles/$PROFILE" ]]; then
|
|
echo "Profile not found: $PROFILE"
|
|
echo "Available profiles:"
|
|
ls "$HOME/profiles/"
|
|
exit 1
|
|
fi
|
|
|
|
"$HOME/profiles/$PROFILE/install.sh"
|
|
hyprctl reload
|
|
echo "Switched to profile: $PROFILE"
|