X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=config%2Fawesome%2Frc.lua;h=7f42ed3d9abef4638b47772c4cfeb7fdb75f6b06;hb=8ab06d04493004fb0be02d8521628a414a818651;hp=911ae1341d06819a20cf000428a946c1360a6b0b;hpb=afc4c55efa407ecc77430e0984a491eb8ee799b3;p=~madcoder%2Fdotfiles.git diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 911ae13..7f42ed3 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -322,7 +322,7 @@ globalkeys = { key(k_m, "Return", function() awful.util.spawn(terminal) end), key(k_ac, "r", awesome.restart), key(k_m, "F12", function() awful.util.spawn(lock) end), - key({}, "#148", function()awful.util.spawn("kcalc") end), + key({}, "#148", function() awful.util.spawn("kcalc") end), -- Layout manipulation key(k_m, "l", function () awful.tag.incmwfact(0.05) end), @@ -467,11 +467,15 @@ end) -- (tag switch, new client, etc) awful.hooks.arrange.register(function (screen) local sel = client.focus + if not sel then sel = awful.client.focus.history.get(screen, 0) - if sel then client.focus = sel end + if not sel then return end + client.focus = sel end - if sel and sel ~= mouse.object_under_pointer() then + + local o = mouse.object_under_pointer() + if not o or (type(o) == "client" and o ~= sel) then local g = sel:geometry() mouse.coords { x = g.x + 5, y = g.y + 5 } @@ -479,3 +483,5 @@ awful.hooks.arrange.register(function (screen) end) -- }}} + +awful.util.spawn("xkbcomp -w 0 -R/usr/share/X11/xkb ~/.Xkeyboard :0")