mirror of
https://github.com/vee1e/moomer.git
synced 2026-09-01 10:18:47 +00:00
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.
23 lines
627 B
Bash
Executable file
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
|