#!/bin/bash # Usage: switch-profile.sh 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"