-
----- Sample - Drawing on the screen - http://www.hammerspoon.org/go/#simplereload
---mouseCircle = nil
---mouseCircleTimer = nil
---function mouseHighlight()
--- -- Delete an existing highlight if it exists
--- if mouseCircle then
--- mouseCircle:delete()
--- if mouseCircleTimer then
--- mouseCircleTimer:stop()
--- end
--- end
--- -- Get the current co-ordinates of the mouse pointer
--- mousepoint = hs.mouse.getAbsolutePosition()
--- -- Prepare a big red circle around the mouse pointer
--- mouseCircle = hs.drawing.circle(hs.geometry.rect(mousepoint.x-40, mousepoint.y-40, 80, 80))
--- mouseCircle:setStrokeColor({["red"]=1,["blue"]=0,["green"]=0,["alpha"]=1})
--- mouseCircle:setFill(false)
--- mouseCircle:setStrokeWidth(5)
--- mouseCircle:show()
---
--- -- Set a timer to delete the circle after 3 seconds
--- mouseCircleTimer = hs.timer.doAfter(3, function() mouseCircle:delete() end)
---end
---hs.hotkey.bind({"cmd","alt","shift"}, "D", mouseHighlight)
---
---
----- window movement
---hs.hotkey.bind({"cmd", "alt", "ctrl"}, "H", function()
--- local win = hs.window.focusedWindow()
--- local f = win:frame()
---
--- f.x = f.x - 10
--- win:setFrame(f)
---end)
-