mjolnir._asm.hydra.dockicon

Home: https://github.com/asmagill/mjolnir_asm.hydra

Functions for controlling Mjolnir's own dock icon.

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

bounce

mjolnir._asm.hydra.dockicon.bounce(indefinitely = false)

Bounces Mjolnir's dock icon; if indefinitely is true, won't stop until you click the dock icon.

hide

mjolnir._asm.hydra.dockicon.hide()

Hides Mjolnir's dock icon; Mjolnir will no longer show up when you Cmd-Tab.

setbadge

mjolnir._asm.hydra.dockicon.setbadge(str)

Set's Mjolnir's dock icon's badge to the given string; pass an empty string to clear it.

show

mjolnir._asm.hydra.dockicon.show()

Shows Mjolnir's dock icon; Mjolnir can then be switched to via Cmd-Tab.

visible

mjolnir._asm.hydra.dockicon.visible() -> bool

Returns whether Mjolnir has a Dock icon, and thus can be switched to via Cmd-Tab.