X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d23e9a8d21ebd93b4bfc68d15482ac620d13a9ac..a8dd48ddfc1f286ebfd45690dba32d87d16b1261:/awesome/bindings.lua diff --git a/awesome/bindings.lua b/awesome/bindings.lua index a6a58b3..2597eb2 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -1,3 +1,10 @@ +-- Default modkey. +-- Usually, Mod4 is the key with a logo between Control and Alt. +-- If you do not like this or do not have such a key, +-- I suggest you to remap Mod4 to another key using xmodmap or other tools. +-- However, you can use another modifier like Mod1, but it may interact with others. +modkey = "Mod4" + -- {{{ Mouse bindings root.buttons(awful.util.table.join( awful.button({ }, 3, function () mymainmenu:toggle() end), @@ -28,13 +35,10 @@ globalkeys = awful.util.table.join( awful.client.focus.byidx(-1) if client.focus then client.focus:raise() end end), - awful.key({ modkey }, "w", function () mymainmenu:show() end), -- Layout manipulation awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), - 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, }, "Tab", function () @@ -70,11 +74,16 @@ globalkeys = awful.util.table.join( -- }}} -- {{{ My Keys + -- Menu + awful.key({ modkey }, "w", function () mymainmenu:show({ coords = { x = 0, y = 0}}) end), -- Prompt awful.key({ modkey }, "space", function () mypromptbox[mouse.screen]:run() end), -- switch layout awful.key({ modkey }, "]", function () awful.layout.inc(layouts, 1) end), awful.key({ modkey }, "[", function () awful.layout.inc(layouts, -1) end), + -- resize slave + awful.key({ modkey, "Control" }, "j", function () awful.client.incwfact( 0.05) end), + awful.key({ modkey, "Control" }, "k", function () awful.client.incwfact(-0.05) end), -- Ksnapshot awful.key({ }, "F13", function () awful.util.spawn("ksnapshot") end), -- Layout manipulation