Minimalist spoon for showing the number of spaces and currently active space on macOS.
Files
README.md

Spatial #

Minimalist spoon for showing the number of spaces and currently active space on macOS.

Installation #

Clone the repository #

# Create the `Spoons` directory if it doesn't exist
mkdir -p ~/.hammerspoon/Spoons

# Clone the repository into the Spoons directory
git clone https://tangled.org/mjj.io/Spatial.spoon ~/.hammerspoon/Spoons/Spatial.spoon

Using SpoonInstall: #

hs.loadSpoon("SpoonInstall")

-- Use `SpoonInstall` to install and load the Spatial spoon
spoon.SpoonInstall:andUse("Spatial", {
  -- Automatically start the spoon after installation
  start = true,
  config = {
    -- Optionally provide a custom configuration
    activeSpaceIcon = function(spaceNumber)
      return string.format("[ %d ]", spaceNumber)
    end,
    inactiveSpaceIcon = function(spaceNumber)
      return string.format(" %d ", spaceNumber)
    end
  }
})

Inspiration #

License #

See LICENSE.