require("naughty")
require("obvious.volume_alsa")
+require("obvious.battery")
-- Load Debian menu entries
require("debian.menu")
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
-- }}}
mytextclock = awful.widget.textclock({ align = "right" }, " %c ", 1)
myvolumealsa = obvious.volume_alsa()
+mybattery = obvious.battery()
-- Create a systray
mysystray = widget({ type = "systray" })
mylayoutbox[s],
mytextclock,
myvolumealsa,
+ mybattery,
s == 1 and mysystray or nil,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
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),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, }, "space", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
+ awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end)
awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, "Shift" }, "m", function (c) c.minimized = not c.minimized end),
awful.key({ modkey, }, "m",
end
end)
+function warp_mouse()
+ c = client.focus
+ if c then
+ local g = c:geometry()
+ mouse.coords({ x = g.x + 30, y = g.y + 30}, 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)
-- }}}