Skip to content

Instantly share code, notes, and snippets.

View baptistemesta's full-sized avatar

Baptiste Mesta baptistemesta

View GitHub Profile
@baptistemesta
baptistemesta / init.lua
Created December 4, 2024 17:40
Hammerspoon config for moving windows
-- Set up the logger
local log = hs.logger.new('WindowMover', 'info')
-- Function to get spaceId by space name
function getSpaceIdByName(spaceName)
local spaceNames = hs.spaces.missionControlSpaceNames()
for uuid, desktops in pairs(spaceNames) do
log.i("UUID: " .. uuid) -- Log the UUID
for index, name in pairs(desktops) do
log.i("Index: " .. index .. ", Name: " .. tostring(name)) -- Log the index and name