Enforce the repo convention that committed text is English. Translates ABOUTME headers, code comments, log/error messages, shell prompts, and documentation across all files. CLAUDE.md files remain in German per policy.
33 lines
923 B
Bash
Executable File
33 lines
923 B
Bash
Executable File
#!/bin/bash
|
|
# ABOUTME: Installs themes not available via packages (cursor theme).
|
|
# ABOUTME: Called by post-install.sh.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
log() {
|
|
echo -e "\e[1;34m[Moonarch]\e[0m $*"
|
|
}
|
|
|
|
# --- Sweet-cursors ---
|
|
CURSOR_DEST="/usr/share/icons/Sweet-cursors"
|
|
|
|
if [[ -d "$CURSOR_DEST" ]]; then
|
|
log "Sweet-cursors already installed."
|
|
else
|
|
log "Installing Sweet-cursors..."
|
|
TMPDIR=$(mktemp -d)
|
|
git clone --depth 1 https://github.com/EliverLara/Sweet.git "$TMPDIR/sweet"
|
|
|
|
if [[ -d "$TMPDIR/sweet/kde/cursors/Sweet-cursors" ]]; then
|
|
sudo cp -r "$TMPDIR/sweet/kde/cursors/Sweet-cursors" "$CURSOR_DEST"
|
|
log "Sweet-cursors installed to $CURSOR_DEST."
|
|
else
|
|
echo "Cursor directory not found in repository." >&2
|
|
echo "Please install manually: https://github.com/EliverLara/Sweet" >&2
|
|
fi
|
|
|
|
rm -rf "$TMPDIR"
|
|
fi
|