docs » RoundedCorners

Give your screens rounded corners

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

API Overview

API Documentation

Variables

allScreens
Signature RoundedCorners.allScreens
Type Variable
Description

Controls whether corners are drawn on all screens or just the primary screen. Defaults to true

Source Source/RoundedCorners.spoon/init.lua
level
Signature RoundedCorners.level
Type Variable
Description

Controls which level of the screens the corners are drawn at. See hs.canvas.windowLevels for more information. Defaults to screenSaver + 1

Source Source/RoundedCorners.spoon/init.lua
radius
Signature RoundedCorners.radius
Type Variable
Description

Controls the radius of the rounded corners, in points. Defaults to 6

Source Source/RoundedCorners.spoon/init.lua

Methods

start
Signature RoundedCorners:start()
Type Method
Description

Starts RoundedCorners

Parameters:

  • None

Returns:

  • The RoundedCorners object

Notes:

  • This will draw the rounded screen corners and start watching for changes in screen sizes/layouts, reacting accordingly
Source Source/RoundedCorners.spoon/init.lua
stop
Signature RoundedCorners:stop()
Type Method
Description

Stops RoundedCorners

Parameters:

  • None

Returns:

  • The RoundedCorners object

Notes:

  • This will remove all rounded screen corners and stop watching for changes in screen sizes/layouts
Source Source/RoundedCorners.spoon/init.lua