Skip to content

Conversation

@dluksza
Copy link

@dluksza dluksza commented Oct 10, 2014

Here are three functions that enables moving cursor between screen.

Example usage:

local cursor    = require "mjolnir.jstevenson.cursor"

function throwCursor()
  local nextScreen = cursor.screen():next()
  local nextFrame = nextScreen:fullframe()
  local x = nextFrame.w / 2
  local y = nextFrame.h / 2
  cursor.movetopoint(nextScreen, x, y)
  cursor.show(nextScreen)
end

hotkey.bind({"cmd"}, "k", throwCursor)

Adds posibility to move cursor to given point on given screen

Signed-off-by: Dariusz Luksza <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant