Skip to content

Instantly share code, notes, and snippets.

@jmitchener
Created February 19, 2013 00:31
Show Gist options
  • Save jmitchener/4982016 to your computer and use it in GitHub Desktop.
Save jmitchener/4982016 to your computer and use it in GitHub Desktop.
awful.key({ modkey, "Control" }, "j", function ()
awful.screen.focus_relative(-1)
local g = screen[mouse.screen].geometry
mouse:coords({ x = g.x + g.width / 2, y = g.y + g.height / 2 })
end),
awful.key({ modkey, "Control" }, "k", function ()
awful.screen.focus_relative( 1)
local g = screen[mouse.screen].geometry
mouse.coords({ x = g.x + g.width / 2, y = g.y + g.height / 2 })
end),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment