#!/bin/bash # @raycast.schemaVersion 1 # @raycast.title Load Window Layout # @raycast.mode silent # @raycast.icon 🖥️ # @raycast.packageName Layout Selector # @raycast.argument1 { "type": "text", "placeholder": "Layout Name" } if [ ! -f /opt/homebrew/bin/hs ]; then echo "Hammerspoon CLI link missing" exit 1 fi LAYOUT_NAME="$1" if [ -z "$LAYOUT_NAME" ]; then exit 1 fi /opt/homebrew/bin/hs -c "LayoutSelector.load('${LAYOUT_NAME}')"