Initial import: Lua config, trimmed omarchy scripts, theme system

This commit is contained in:
2026-06-11 19:06:22 +02:00
commit 835a9aa3b5
536 changed files with 12459 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#!/bin/bash
# Setup script for archypr configuration system
# Clones and trims omarchy scripts
set -euo pipefail
OMARCHY_BIN="/home/oval/.local/share/omarchy/bin"
TARGET_DIR="/home/oval/archypr-config/scripts"
mkdir -p "$TARGET_DIR"
echo "Cloning omarchy scripts to $TARGET_DIR..."
# Process each omarchy script
for script in "$OMARCHY_BIN"/omarchy-*; do
[[ -f "$script" ]] || continue
# Get script name without path and prefix
base_name=$(basename "$script")
# Remove 'omarchy-' prefix
new_name="${base_name#omarchy-}"
echo "Processing: $base_name -> $new_name"
# Copy and transform:
# 1. Replace OMARCHY_ with ARCHYPR_
# 2. Replace ~/.config/omarchy with ~/.config/archypr
# 3. Replace ~/.local/share/omarchy with ~/.local/share/archypr
# 4. Replace $OMARCHY_PATH with $ARCHYPR_PATH
sed -E \
-e 's/OMARCHY_/ARCHYPR_/g' \
-e 's|~/.config/omarchy|~/.config/archypr|g' \
-e 's|~/.local/share/omarchy|~/.local/share/archypr|g' \
-e 's/\$OMARCHY_PATH/\$ARCHYPR_PATH/g' \
"$script" > "$TARGET_DIR/$new_name"
chmod +x "$TARGET_DIR/$new_name"
done
echo "Done. $(ls -1 "$TARGET_DIR" | wc -l) scripts created."