diff --git a/scripts/install.sh b/scripts/install.sh index e87e2e1..f0a2b28 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -62,15 +62,9 @@ BUNDLED_APPS="clock code cron env git metrics versions" for app in $BUNDLED_APPS; do if [ -d "apps/$app" ]; then echo " Installing $app..." - # Copy app to ~/apps cp -r "apps/$app" ~/apps/ - # Find the version directory and create current symlink - version_dir=$(ls -1 ~/apps/$app | grep -E '^[0-9]{8}-[0-9]{6}$' | sort -r | head -1 || true) - if [ -n "$version_dir" ]; then - ln -sfn "$version_dir" ~/apps/$app/current - (cd ~/apps/$app/current && bun install --frozen-lockfile) > /dev/null 2>&1 - elif [ -f ~/apps/$app/package.json ]; then - (cd ~/apps/$app && bun install --frozen-lockfile) > /dev/null 2>&1 + if [ -f ~/apps/$app/package.json ]; then + quiet bun install --frozen-lockfile --cwd ~/apps/$app fi fi done @@ -93,31 +87,6 @@ quiet sudo systemctl enable "$SERVICE_NAME" echo ">> Starting (or restarting) $SERVICE_NAME" quiet sudo systemctl restart "$SERVICE_NAME" -echo ">> Enabling kiosk mode" -sudo raspi-config nonint do_boot_behaviour B4 - -# labwc (older RPi OS / manual installs) -mkdir -p ~/.config/labwc -cat > ~/.config/labwc/autostart <<'EOF' -chromium --noerrdialogs --disable-infobars --kiosk http://localhost -EOF -# Wayfire (RPi OS Bookworm default) -WAYFIRE_CONFIG="$HOME/.config/wayfire.ini" -if [ -f "$WAYFIRE_CONFIG" ]; then - # Remove existing chromium autostart if present - sed -i '/^chromium = /d' "$WAYFIRE_CONFIG" - # Add to existing [autostart] section or create it - if grep -q '^\[autostart\]' "$WAYFIRE_CONFIG"; then - sed -i '/^\[autostart\]/a chromium = chromium --noerrdialogs --disable-infobars --kiosk http://localhost' "$WAYFIRE_CONFIG" - else - cat >> "$WAYFIRE_CONFIG" <<'EOF' - -[autostart] -chromium = chromium --noerrdialogs --disable-infobars --kiosk http://localhost -EOF - fi -fi - echo ">> Done! Rebooting in 5 seconds..." quiet systemctl status "$SERVICE_NAME" --no-pager -l || true sleep 5