clean: remove obsolete standalone shell scripts and old js layout engine

This commit is contained in:
2026-05-15 23:49:30 -04:00
parent 99fe36b767
commit 6fb5ab9ad6
10 changed files with 24 additions and 360 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Workspace Auto-Save Status
# @raycast.mode inline
# @raycast.refreshTime 10s
# Optional parameters:
# @raycast.icon 💠
# @raycast.packageName Window Automation
# 1. Pull active timer values from the live Hammerspoon engine state
COUNTDOWN=$(/opt/homebrew/bin/hs -c "print(WindowManager.saveCountdown)" 2>/dev/null)
LAST_SAVE=$(/opt/homebrew/bin/hs -c "print(WindowManager.lastSavedTime)" 2>/dev/null)
# 2. Output structural string directly into the Raycast search results row
if [ -z "$COUNTDOWN" ] || [ "$COUNTDOWN" == "nil" ]; then
echo "Hammerspoon Offline"
else
MIN=$((COUNTDOWN / 60))
SEC=$((COUNTDOWN % 60))
printf "Next: %d:%02d | Saved: %s\n" $MIN $SEC "$LAST_SAVE"
fi