moomer/scripts/moomer-raycast.sh
lakshit verma 0d6dcaa0c7
Fix macOS overlay launch: faster capture, no Space thrash, Raycast-safe
Drop osascript fullscreen exit and slow focus hacks; capture immediately
and show a high-level CanJoinAllSpaces overlay. Avoid mutually exclusive
NSWindowCollectionBehavior flags that aborted under Raycast, harden
activation for non-UI script hosts, and document installing to PATH.
2026-07-20 13:08:38 +05:30

23 lines
627 B
Bash
Executable file

#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Moomer
# @raycast.mode silent
# @raycast.packageName Moomer
# @raycast.icon 🔍
# @raycast.description Screenshot + zoom overlay (boomer-style)
#
# Keep the installed binary in sync after builds:
# cp -f target/release/moomer ~/.local/bin/moomer
set -euo pipefail
BIN="${MOOMER_BIN:-$HOME/.local/bin/moomer}"
if [[ ! -x "$BIN" ]]; then
BIN="$(cd "$(dirname "$0")/.." && pwd)/target/release/moomer"
fi
# Detach from Raycast so the GUI keeps running after the script exits.
nohup "$BIN" >>/tmp/moomer.raycast.out 2>&1 &
disown || true
exit 0