docs » AClock

Just another clock, floating above all.

Configurable properties (with default values): format = "%H:%M", textFont = "Impact", textSize = 135, textColor = {hex="#1891C3"}, width = 320, height = 230, showDuration = 4, -- seconds hotkey = 'escape', hotkeyMods = {},

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/AClock.spoon.zip

API Overview

API Documentation

Methods

hide
Signature AClock:hide()
Type Method
Description

Hide AClock.

Parameters:

  • None

Returns:

  • The AClock object
Source Source/AClock.spoon/init.lua
init
Signature AClock:init()
Type Method
Description

init.

Parameters:

  • None

Returns:

  • The AClock object
Source Source/AClock.spoon/init.lua
show
Signature AClock:show()
Type Method
Description

Show AClock.

Parameters:

  • None

Returns:

  • The AClock object
Source Source/AClock.spoon/init.lua
toggleShow
Signature AClock:toggleShow()
Type Method
Description

Show AClock for 4 seconds. If already showing, hide it.

Parameters:

  • None
Source Source/AClock.spoon/init.lua
toggleShowPersistent
Signature AClock:toggleShowPersistent()
Type Method
Description

Show AClock. If already showing, hide it.

Parameters:

  • None
Source Source/AClock.spoon/init.lua