require("vicious")
require("beautiful")
-terminal = "x-terminal-emulator"
+terminal = "urxvtcd"
lock = 'xscreensaver-command -lock'
beautiful.init(awful.util.getdir("config").."/theme")
awful.key(k_ms, "Tab", function () awful.screen.focus_relative(-1) end),
-- Mod+Enter: Launch a new terminal
- awful.key(k_m, "e", function() awful.util.spawn("firefox") end),
+ awful.key(k_m, "e", function() awful.util.spawn("chromium-browser") end),
awful.key(k_m, "Return", function() awful.util.spawn(terminal) end),
awful.key(k_ac, "r", awesome.restart),
awful.key(k_m, "F12", function() awful.util.spawn(lock) end),
-- {{{ Signals
function warp_mouse(c)
- local o = awful.mouse.client_under_pointer()
- if not o or o ~= c then
+ local o = mouse.object_under_pointer()
+ if not o or (o ~= c and type(o) == "client") then
local g = c:geometry()
mouse.coords({ x = g.x + 5, y = g.y + 5 }, true)
end