Skip to content

Instantly share code, notes, and snippets.

View diogox's full-sized avatar

Diogo Pinto diogox

View GitHub Profile
@diogox
diogox / hs.lua
Created March 19, 2023 15:27
My Hammerspoon setup
-- Make sure commandline client (/usr/local/bin/hs) is installed
-- and IPC module is running.
require("hs.ipc")
local logger = hs.logger.new("ipc", "info")
local path = "/usr/local"
-- On Macs with Apple chips, install cli in /opt/homebrew/ with Homebrew
-- as /usr/local doesn't seem to be writable.