Skip to content

Instantly share code, notes, and snippets.

@aurelijusb
Created August 7, 2013 08:53
Show Gist options
  • Save aurelijusb/6172387 to your computer and use it in GitHub Desktop.
Save aurelijusb/6172387 to your computer and use it in GitHub Desktop.
Awesome window manager configurations snippets. Win+Shift+[Arrows] to move with window to next tag (workspace). Fine tuned from http://awesome.naquadah.org/wiki/Move_Window_to_Workspace_Left/Right
-- clientkeys =
awful.key({ modkey, "Shift" }, "Left",
function (c)
local curidx = awful.tag.getidx()
local screen = mouse.screen
if curidx == 1 then curidx = 9 else curidx = curidx - 1 end
awful.client.movetotag(tags[client.focus.screen][curidx])
awful.tag.viewonly(tags[screen][curidx])
end),
awful.key({ modkey, "Shift" }, "Right",
function (c)
local curidx = awful.tag.getidx()
local screen = mouse.screen
if curidx == 9 then curidx = 0 else curidx = curidx + 1 end
awful.client.movetotag(tags[client.focus.screen][curidx])
awful.tag.viewonly(tags[screen][curidx])
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment