fix: robust hs binary search in tile-windows.applescript (#92)

The original AppleScript hardcoded /opt/homebrew/bin/hs, but
do shell script runs with a minimal PATH so the hs CLI may not
be found. Now searches known locations: /opt/homebrew/bin/hs,
/usr/local/bin/hs, /opt/local/bin/hs, and the Hammerspoon
Caskroom path.

Co-authored-by: Wicked Yoda <noreply@users.noreply.github.com>
This commit is contained in:
WickedYodaandWicked Yoda authored and GitHub committed 2026-08-14 12:38:28 -05:00
1 parent af1d1634c2
commit 39c943f945
2 files changed
+36 -7

No files matched your search

+2
View File
@@ -19,6 +19,8 @@ brew install --cask hammerspoon
```
Open Hammerspoon and **grant Accessibility permission** in System Settings → Privacy & Security → Accessibility.
> **Note:** The clickable `.app` searches these known `hs` binary locations automatically: `/opt/homebrew/bin/hs`, `/usr/local/bin/hs`, `/opt/local/bin/hs`, and the Hammerspoon Caskroom path. This is necessary because AppleScript's `do shell script` runs with a minimal PATH that doesn't include your interactive shell's PATH.
### 2. Install the config
```bash
# Back up existing config if you have one