From 7b7238edbaeb66bc0faf980acc9feb058ff4ebac Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 9 Oct 2009 17:00:43 +0200 Subject: rc.lua: improved floater behaviour --- rc.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rc.lua b/rc.lua index fa23799..f47b736 100644 --- a/rc.lua +++ b/rc.lua @@ -1,6 +1,6 @@ -- {{{ Header -- --- Awesome configuration, using awesome 3.4-rc2 on Arch GNU/Linux +-- Awesome configuration, using awesome 3.4-rc3 on Arch GNU/Linux -- * Adrian C. -- Screenshot: http://sysphere.org/gallery/snapshots @@ -546,7 +546,10 @@ clientkeys = awful.util.table.join( else wibox[mouse.screen].screen = nil end end), awful.key({ modkey }, "c", function (c) c:kill() end), - awful.key({ modkey }, "f", function (c) c.fullscreen = not c.fullscreen end), + awful.key({ modkey }, "f", function (c) + c.fullscreen = not c.fullscreen + c.above = not c.fullscreen + end), awful.key({ modkey }, "m", function (c) c.maximized_horizontal = not c.maximized_horizontal c.maximized_vertical = not c.maximized_vertical @@ -562,14 +565,14 @@ clientkeys = awful.util.table.join( awful.key({ modkey, "Shift" }, "0", function (c) c.sticky = not c.sticky end), awful.key({ modkey, "Shift" }, "o", function (c) c.ontop = not c.ontop end), awful.key({ modkey, "Shift" }, "t", function (c) - if c.titlebar then awful.titlebar.remove(c) + if c.titlebar then awful.titlebar.remove(c) else awful.titlebar.add(c, { modkey = modkey }) end end), awful.key({ modkey, "Control" }, "r", function (c) c:redraw() end), awful.key({ modkey, "Control" }, "space", function (c) awful.client.floating.toggle(c) if awful.client.floating.get(c) then - c.above = true; awful.titlebar.add(c) + c.above = true; awful.titlebar.add(c); awful.placement.no_offscreen(c) else c.above = false; awful.titlebar.remove(c) end end), awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), -- cgit v1.2.3