diff options
-rw-r--r-- | config/awesome/rc.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 96a2517..cc1ce49 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -410,7 +410,14 @@ globalkeys = awful.util.table.join( clientkeys = awful.util.table.join( -- awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end), -- awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end), - awful.key({ modkey, "Shift" }, "space", awful.client.floating.toggle ), + awful.key({ modkey, "Shift" }, "space", + function (c) + awful.client.floating.toggle(c) + if not c.floating then + c.maximized_horizontal = false + c.maximized_vertical = false + end + end), awful.key({ modkey, }, "Return", function (c) c:swap(awful.client.getmaster()) end), awful.key({ modkey, }, "o", function (c) c:move_to_screen() end), awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), |