diff options
author | Peter Palfrader <peter@palfrader.org> | 2017-02-20 11:29:30 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2017-02-20 11:29:30 +0100 |
commit | 64da10a82a882e76a0c1bd948773901ac9c82771 (patch) | |
tree | a71b243fbd43deaa31953179dc7dd6767bd0bdb8 | |
parent | 90d3d484d3cf2519abbe5e491bcfb3e209d9070a (diff) |
Make modkey+Control space reset layout, toggle float is shift space
-rw-r--r-- | config/awesome/rc.lua | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 9a274d5..b1ec61f 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -270,7 +270,14 @@ globalkeys = awful.util.table.join( awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster( 1) end), awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol(-1) end), awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol( 1) end), - awful.key({ modkey, "Shift", "Control" }, "space", function () awful.tag.setncol(1) awful.tag.setnmaster(1) end), + awful.key({ modkey, "Control" }, "space", function () + awful.tag.setncol(1) + awful.tag.setnmaster(1) + -- awful.tag.setmwfact(0.50) + awful.tag.incmwfact( 0.5 - awful.tag.getmwfact() ) + awful.layout.set(layouts[1]) + end), + awful.key({ modkey, }, "space", function () if awful.util.table.hasitem(layouts, awful.layout.get() ) then awful.layout.inc(layouts, 1) @@ -278,13 +285,13 @@ globalkeys = awful.util.table.join( awful.layout.set(layouts[1]) end end), - awful.key({ modkey, "Shift" }, "space", function () - if awful.util.table.hasitem(layouts, awful.layout.get() ) then - awful.layout.inc(layouts, -1) - else - awful.layout.set(layouts[1]) - end - end), + --awful.key({ modkey, "Shift" }, "space", function () + -- if awful.util.table.hasitem(layouts, awful.layout.get() ) then + -- awful.layout.inc(layouts, -1) + -- else + -- awful.layout.set(layouts[1]) + -- end + -- end), -- awful.key({ modkey, "Control" }, "n", awful.client.restore), @@ -403,7 +410,7 @@ 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, "Control" }, "space", awful.client.floating.toggle ), + awful.key({ modkey, "Shift" }, "space", awful.client.floating.toggle ), 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), |