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