summary refs log tree commit diff
path: root/.config/awesome
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/awesome/rc.lua23
1 files changed, 12 insertions, 11 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 746c5e54..d5d26cf4 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -183,6 +183,7 @@ globalkeys = awful.util.table.join(
     awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative(1) end),
     awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
     awful.key({ modkey }, "u", awful.client.urgent.jumpto),
+    awful.key({ modkey, "Control" }, "n", awful.client.restore),
 
     -- Tag modification
     awful.key({ modkey }, "l", function () awful.tag.incmwfact(0.05) end),
@@ -215,24 +216,24 @@ globalkeys = awful.util.table.join(
     awful.key({ modkey, "Shift" }, "q", awesome.quit))
 
 clientkeys = awful.util.table.join(
-    awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
-
-    awful.key({ modkey }, "f", function (c) c.fullscreen = not c.fullscreen end),
-    awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle),
-    awful.key({ modkey }, "t", function (c) c.ontop = not c.ontop end),
-    awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
-
+    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, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
-    awful.key({ modkey }, "o", awful.client.movetoscreen),
-
-    -- This is where I got too lazy to rewrite the default
+    awful.key({ modkey,           }, "o",      awful.client.movetoscreen                        ),
+    awful.key({ modkey,           }, "t",      function (c) c.ontop = not c.ontop            end),
+    awful.key({ modkey,           }, "n",
+        function (c)
+            -- The client currently has the input focus, so it cannot be
+            -- minimized, since minimized clients can't have the focus.
+            c.minimized = true
+        end),
     awful.key({ modkey,           }, "m",
         function (c)
             c.maximized_horizontal = not c.maximized_horizontal
             c.maximized_vertical   = not c.maximized_vertical
         end)
 )
-
 -- Compute the maximum number of digit we need, limited to 9
 keynumber = 0
 for s = 1, screen.count() do