Skip to content
Browse files

example.rc.lua: Fix moving tag to next screen

Signed-off-by: Perry Hargrave <resixian@gmail.com>
  • Loading branch information...
1 parent b13135b commit 5a376661e7e963856a2f969f83dbd37808fccbc8 @bioe007 committed Jan 17, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 example.rc.lua
View
12 example.rc.lua
@@ -317,9 +317,15 @@ globalkeys = awful.util.table.join(
awful.key({modkey, "Shift"}, "d", shifty.del), -- delete a tag
awful.key({modkey, "Shift"}, "n", shifty.send_prev), -- client to prev tag
awful.key({modkey}, "n", shifty.send_next), -- client to next tag
- awful.key({modkey, "Control"}, "n", function()
- shifty.tagtoscr(awful.util.cycle(screen.count(), mouse.screen + 1))
- end), -- move client to next tag
+ awful.key({modkey, "Control"},
+ "n",
+ function()
+ local t = awful.tag.selected()
+ local s = awful.util.cycle(screen.count(), t.screen + 1)
+ awful.tag.history.restore()
+ t = shifty.tagtoscr(s, t)
+ awful.tag.viewonly(t)
+ end),
awful.key({modkey}, "a", shifty.add), -- creat a new tag
awful.key({modkey,}, "r", shifty.rename), -- rename a tag
awful.key({modkey, "Shift"}, "a", -- nopopup new tag

0 comments on commit 5a37666

Please sign in to comment.
Something went wrong with that request. Please try again.