Hammerspoon maintainer here - I'm enjoying reading all the comments, and hoping that everyone isn't going to be annoyed that I'm mostly working on a v2 atm, which switches from Lua to JavaScript :D
Hammerspoon
101–110 of 154 posts
Re: Hammerspoon
#102Will be using it for more automation tools moving forward.
Re: Hammerspoon
#103Re: Hammerspoon
#104Hammerspoon is the glue that holds my Mac together. For a starter list of things to do with this app, a partial list of the things that I'm using it for: - Dumping all open Safari tabs to an Obsidian doc - Adding 'hyper' (Ctrl-Opt-Cmd) keybinds to pop a new window for: - Safari - Finder - Terminal / Ghostty - VS Code - Notes - Editing Hammerspoon/AeroSpace/Sketchybar config - Reloading Hammerspoon config - Reloading…
I pretty much only use it for two (related) things these days: - check the list of open Teams windows; if there's a non-standard one, assume I'm in a meeting and webhook to HomeAssistant to select the "active"[2] preset on my meeting light[0]. - download my work ical[1] and, if there's a pending meeting ( [0] Just a short strip of WS2812B connected to an ESP32 running WLED. [1] Originally this was a simple HTTP to my…
Re: Hammerspoon
#105Hammerspoon maintainer here - I'm enjoying reading all the comments, and hoping that everyone isn't going to be annoyed that I'm mostly working on a v2 atm, which switches from Lua to JavaScript :D
Can't wait for the JS switch! Personally, it's having to figure out Lua is what's kept me away from it... :)
Re: Hammerspoon
#106Earlier quoted context omitted.
I pretty much only use it for two (related) things these days: - check the list of open Teams windows; if there's a non-standard one, assume I'm in a meeting and webhook to HomeAssistant to select the "active"[2] preset on my meeting light[0]. - download my work ical[1] and, if there's a pending meeting ( [0] Just a short strip of WS2812B connected to an ESP32 running WLED. [1] Originally this was a simple HTTP to my…
This is a great integration!
Re: Hammerspoon
#107Earlier quoted context omitted.
> - Dumping all open Safari tabs to an Obsidian doc I'd love to do this too. Would you mind sharing how you do it? Or is it trivially easy and not worth explaining? (I haven't looked too deeply into HS yet.)
It's not trivial, but roughly: use AppleScript/osascript to get the URLs, but mostly pass them to a ~50 line Bash script which: - Brings in the date path components for the dumped-to folder - Makes a hash of the URL for an Obsidian doc (each tab gets their own doc) - Uses Chrome command line (--headless --disable-gpu --dump-dom) to save a snapshot of the page contents - Uses it again with --screenshot to make a thumb…
You could combine both of those into "run Archivebox somewhere and pass the URLs into that" (which is what I do for "URLs I save to Instapaper" - they go to my Linkhut, Pinboard, my Archivebox, and once I've fixed my code, to archive.org as well.)
Re: Hammerspoon
#108Hammerspoon is the glue that holds my Mac together. For a starter list of things to do with this app, a partial list of the things that I'm using it for: - Dumping all open Safari tabs to an Obsidian doc - Adding 'hyper' (Ctrl-Opt-Cmd) keybinds to pop a new window for: - Safari - Finder - Terminal / Ghostty - VS Code - Notes - Editing Hammerspoon/AeroSpace/Sketchybar config - Reloading Hammerspoon config - Reloading…