From ea9561f8ffc6a3d4a2bead4a47a883001a1398dc Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 28 May 2019 00:51:18 +0200 Subject: Move or remove key bindings Remove minimize, maximize. Move help to bépo "?", ontop to bépo "!", run to "x", Lua prompt to "X". --- rc.lua | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/rc.lua b/rc.lua index 8217c2c..35e52dc 100644 --- a/rc.lua +++ b/rc.lua @@ -278,7 +278,7 @@ root.buttons(awful.util.table.join( -- {{{ Key bindings globalkeys = awful.util.table.join( - awful.key({ modkey, }, "s", hotkeys_popup.show_help, + awful.key({ modkey, "Shift" }, "#57", hotkeys_popup.show_help, {description="show help", group="awesome"}), awful.key({ modkey, }, "Left", awful.tag.viewprev, {description = "view previous", group = "tag"}), @@ -323,7 +323,7 @@ globalkeys = awful.util.table.join( -- Standard program awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}), - awful.key({ modkey, "Control" }, "r", awesome.restart, + awful.key({ modkey, "Control" }, "q", awesome.restart, {description = "reload awesome", group = "awesome"}), awful.key({ modkey, "Shift" }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}), @@ -351,22 +351,11 @@ globalkeys = awful.util.table.join( awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end, {description = "select previous", group = "layout"}), - awful.key({ modkey, "Control" }, "n", - function () - local c = awful.client.restore() - -- Focus restored client - if c then - client.focus = c - c:raise() - end - end, - {description = "restore minimized", group = "client"}), - -- Prompt - awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end, + awful.key({ modkey }, "x", function () awful.screen.focused().mypromptbox:run() end, {description = "run prompt", group = "launcher"}), - awful.key({ modkey }, "x", + awful.key({ modkey, "Shift" }, "x", function () awful.prompt.run { prompt = "Run Lua code: ", @@ -393,21 +382,8 @@ clientkeys = awful.util.table.join( {description = "move to master", group = "client"}), awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, {description = "move to screen", group = "client"}), - awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, - {description = "toggle keep on top", group = "client"}), - 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 , - {description = "minimize", group = "client"}), - awful.key({ modkey, }, "m", - function (c) - c.maximized = not c.maximized - c:raise() - end , - {description = "maximize", group = "client"}) + awful.key({ modkey, "Shift" }, "#29", function (c) c.ontop = not c.ontop end, + {description = "toggle keep on top", group = "client"}) ) -- Bind all key numbers to tags. -- cgit v1.2.3