Module for customising Hammerspoon's own Dock icon. The Dock icon is only shown when the "Show in" setting in Hammerspoon's Settings includes the Dock.
hs.dockicon.setMenu([ { title: "Reload config", fn: () => hs.reload() }, { title: "-" }, { title: "Open Console", fn: () => hs.openConsole() }]) Copy
hs.dockicon.setMenu([ { title: "Reload config", fn: () => hs.reload() }, { title: "-" }, { title: "Open Console", fn: () => hs.openConsole() }])
Module for customising Hammerspoon's own Dock icon. The Dock icon is only shown when the "Show in" setting in Hammerspoon's Settings includes the Dock.
Adding items to the Dock icon's menu