Skip to content

Instantly share code, notes, and snippets.

View giograno's full-sized avatar
🏋️
StackLifter!

Giovanni Grano giograno

🏋️
StackLifter!
View GitHub Profile
@jdtsmith
jdtsmith / move_space.lua
Last active August 12, 2025 08:31
Move Space of Current Window with Hammerspoon by simulated click+Ctrl-arrow
local hotkey = require "hs.hotkey"
local window = require "hs.window"
local hse, hsee, hst = hs.eventtap,hs.eventtap.event,hs.timer
local spaces = require "hs.spaces"
function flashScreen(screen)
local flash=hs.canvas.new(screen:fullFrame()):appendElements({
action = "fill",
fillColor = { alpha = 0.35, red=1},
type = "rectangle"})