summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorNicolas Schodet2019-05-28 00:51:18 +0200
committerNicolas Schodet2019-05-28 00:55:33 +0200
commitea9561f8ffc6a3d4a2bead4a47a883001a1398dc (patch)
treec36a4b8b36b0715c399f3528918a8c79854538c5 /rc.lua
parent3307ec350ec45c5ba74ab0f1da8769fdcd4fae0c (diff)
Move or remove key bindings
Remove minimize, maximize. Move help to bépo "?", ontop to bépo "!", run to "x", Lua prompt to "X".
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua36
1 files 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.