]> git.donarmstrong.com Git - x_base.git/commitdiff
add resize rules
authorDon Armstrong <don@donarmstrong.com>
Sun, 13 Sep 2009 18:40:32 +0000 (18:40 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sun, 13 Sep 2009 18:40:32 +0000 (18:40 +0000)
.config/awesome/rc.lua

index 24131ed1c6545d770b6acee63446f1f7ff7a673f..bd09d3d5ac23013df976ed075ab809947c43a7a3 100644 (file)
@@ -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)
 -- }}}