From 11b2d6fdb76a7e7bcd48008f022dca18ef2575f9 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 13 Sep 2009 18:40:32 +0000 Subject: [PATCH 1/1] add resize rules --- .config/awesome/rc.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 24131ed..bd09d3d 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -240,6 +240,16 @@ globalkeys = awful.util.table.join( awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), awful.key({ modkey, }, "n", function () awful.layout.inc(layouts, 1) end), awful.key({ modkey, "Shift" }, "n", function () awful.layout.inc(layouts, -1) end), + + -- resize floats + awful.key({ modkey, "Shift" }, "Down", function () awful.client.moveresize(0, 20, 0, 0) end), + awful.key({ modkey, "Shift" }, "Up", function () awful.client.moveresize(0, -20, 0, 0) end), + awful.key({ modkey, "Shift" }, "Left", function () awful.client.moveresize(-20, 0, 0, 0) end), + awful.key({ modkey, "Shift" }, "Right", function () awful.client.moveresize(20, 0, 0, 0) end), + awful.key({ modkey, "Control" }, "Down", function () awful.client.moveresize(0, 0, 0, -20) end), + awful.key({ modkey, "Control" }, "Up", function () awful.client.moveresize(0, 0, 0, 20) end), + awful.key({ modkey, "Control" }, "Left", function () awful.client.moveresize(0, 0, -20, 0) end), + awful.key({ modkey, "Control" }, "Right", function () awful.client.moveresize(0, 0, 20, 0) end), -- Prompt awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), @@ -262,6 +272,7 @@ clientkeys = awful.util.table.join( awful.key({ modkey, }, "o", awful.client.movetoscreen ), awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end), awful.key({ modkey }, "t", awful.client.togglemarked), + awful.key({ modkey, "Shift" }, "t", function (c) c.ontop= not c.ontop end), awful.key({ modkey,}, "m", function (c) c.maximized_horizontal = not c.maximized_horizontal @@ -430,7 +441,7 @@ awful.hooks.arrange.register(function (screen) end) -- Hook called every minute -awful.hooks.timer.register(60, function () +awful.hooks.timer.register(1, function () mytextbox.text = os.date(" %c ") end) -- }}} -- 2.39.2