Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 4.81 KB

hs.dockicon.md

File metadata and controls

57 lines (46 loc) · 4.81 KB

docs » hs.dockicon


Control Hammerspoon's dock icon

This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.

API Overview

API Documentation

Functions

Signature hs.dockicon.bounce(indefinitely)
Type Function
Description Bounce Hammerspoon's dock icon
Parameters
  • indefinitely - A boolean value, true if the dock icon should bounce until the dock icon is clicked, false if the dock icon should only bounce briefly
Signature hs.dockicon.hide()
Type Function
Description Hide Hammerspoon's dock icon
Parameters
  • None
Returns
  • None
Signature hs.dockicon.setBadge(badge)
Type Function
Description Set Hammerspoon's dock icon badge
Parameters
  • badge - A string containing the label to place inside the dock icon badge. If the string is empty, the badge will be cleared
Signature hs.dockicon.show()
Type Function
Description Make Hammerspoon's dock icon visible
Parameters
  • None
Returns
  • None
Signature hs.dockicon.visible() -> bool
Type Function
Description Determine whether Hammerspoon's dock icon is visible
Parameters
  • None
Returns
  • A boolean, true if the dock icon is visible, false if not