From 02b91ce4f663f7ff0d6981e3aed1a1baeeab3d88 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 1 Sep 2014 15:58:27 +0400 Subject: [PATCH] added layout type switching to win+t --- rc.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rc.lua b/rc.lua index 0b2bd4c..afcfd6e 100644 --- a/rc.lua +++ b/rc.lua @@ -360,7 +360,14 @@ globalkeys = awful.util.table.join( awful.key({ modkey, 'Control' }, 'l', function () awful.tag.incncol(-1) end), awful.key({ modkey, }, 'f', function () awful.layout.set(awful.layout.suit.float) end), awful.key({ modkey, }, 'm', function () awful.layout.set(awful.layout.suit.max) end), - awful.key({ modkey, }, 't', function () awful.layout.set(awful.layout.suit.tile.bottom) end), + awful.key({ modkey, }, 't', + function () + if awful.layout.get(mouse.screen) == awful.layout.suit.tile.bottom then + awful.layout.set(awful.layout.suit.tile) + else + awful.layout.set(awful.layout.suit.tile.bottom) + end + end), awful.key({ modkey, 'Control' }, 'n', awful.client.restore),