tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
- tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s)
+ tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1])
end
-- }}}
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
+ warp_mouse()
end),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
+ warp_mouse()
end),
- awful.key({ modkey, }, "w", function () mymainmenu:show(true) end),
+ awful.key({ modkey, }, "w", function () mymainmenu:show({keygrabber=true}) end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
end
end)
+function warp_mouse()
+ c = client.focus
+ if c then
+ local g = c:geometry()
+ mouse.coords { x = g.x + 5, y = g.y + 5 , true}
+ end
+end
+
+-- for s = 1, screen.count() do
+-- screen[s]:add_signal("arrange", function (screen)
+-- warp_mouse(screen)
+-- end)
+-- end
+
+
client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}