From 64da10a82a882e76a0c1bd948773901ac9c82771 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 20 Feb 2017 11:29:30 +0100 Subject: Make modkey+Control space reset layout, toggle float is shift space --- config/awesome/rc.lua | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'config') 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), -- cgit v1.2.3