From f6137c963387841d15e58c755669fc236140f3f3 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Tue, 12 Oct 2021 11:59:34 -0400 Subject: new keybinds --- awesome/rc.lua | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'awesome') diff --git a/awesome/rc.lua b/awesome/rc.lua index 896cef7..bb683db 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -254,19 +254,19 @@ globalkeys = gears.table.join( awful.key({ modkey, "Control" }, "Up", function (c) awful.client.swap.global_bydirection("up") c:raise() end, {description = "swap with next window down", group = "client"}), awful.key({ modkey, "Control" }, "Right", function (c) awful.client.swap.global_bydirection("right") c:raise() end, - {description = "swap next window right", group = "client"}), + {description = "swap with next window right", group = "client"}), awful.key({ modkey, "Control" }, "Left", function (c) awful.client.swap.global_bydirection("left") c:raise() end, - {description = "swap next window left", group = "client"}), + {description = "swap with next window left", group = "client"}), -- Move window FOCUS by direction in tiling layout - awful.key({ modkey, "Shift" }, "Down", function (c) awful.client.focus.global_bydirection("down") c:lower() end, - {description = "focus next window up", group = "client"}), - awful.key({ modkey, "Shift" }, "Up", function (c) awful.client.focus.global_bydirection("up") c:lower() end, - {description = "focus next window down", group = "client"}), - awful.key({ modkey, "Shift" }, "Right", function (c) awful.client.focus.global_bydirection("right") c:lower() end, - {description = "focus next window right", group = "client"}), - awful.key({ modkey, "Shift" }, "Left", function (c) awful.client.focus.global_bydirection("left") c:lower() end, - {description = "focus next window left", group = "client"}), + awful.key({ modkey }, "Down", function (c) awful.client.focus.global_bydirection("down") c:lower() end, + {description = "focus to next window up", group = "client"}), + awful.key({ modkey }, "Up", function (c) awful.client.focus.global_bydirection("up") c:lower() end, + {description = "focus to next window down", group = "client"}), + awful.key({ modkey }, "Right", function (c) awful.client.focus.global_bydirection("right") c:lower() end, + {description = "focus to next window right", group = "client"}), + awful.key({ modkey }, "Left", function (c) awful.client.focus.global_bydirection("left") c:lower() end, + {description = "focus to next window left", group = "client"}), -- Alt-Tab functionality in maximized layout awful.key({ "Mod1", }, "Tab", @@ -321,14 +321,14 @@ globalkeys = gears.table.join( -- Tiled Window Manipulation - awful.key({ modkey, }, "Right", function () awful.tag.incmwfact( 0.05) end, + awful.key({ modkey, "Mod1" }, "Right", function () awful.tag.incmwfact( 0.05) end, {description = "increase master width factor", group = "layout"}), - awful.key({ modkey, }, "Left", function () awful.tag.incmwfact(-0.05) end, + awful.key({ modkey, "Mod1" }, "Left", function () awful.tag.incmwfact(-0.05) end, {description = "decrease master width factor", group = "layout"}), - awful.key({ modkey, }, "Up", function () awful.client.incwfact( 0.05) end, + awful.key({ modkey, "Mod1" }, "Up", function () awful.client.incwfact( 0.05) end, {description = "increase master height factor", group = "layout"}), - awful.key({ modkey, }, "Down", function () awful.client.incwfact(-0.05) end, + awful.key({ modkey, "Mod1" }, "Down", function () awful.client.incwfact(-0.05) end, {description = "decrease master height factor", group = "layout"}), @@ -345,7 +345,7 @@ globalkeys = gears.table.join( awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end, {description = "select previous", group = "layout"}), - awful.key({ modkey, "Mod1" }, "n", + awful.key({ modkey, "Shift" }, ",", function () local c = awful.client.restore() -- Focus restored client @@ -389,9 +389,9 @@ clientkeys = gears.table.join( {description = "toggle floating", group = "client"}), -- Sticky Window and Always on top toggle - awful.key({modkey, "Mod1" }, ".", function(c) c.ontop = not c.ontop end, + awful.key({modkey, "Shift" }, ".", function(c) c.ontop = not c.ontop end, {description = "toggle always on top", group = "client"}), - awful.key({ modkey, "Mod1" }, "slash", function (c) c.sticky = not c.sticky end, + awful.key({ modkey, "Shift" }, "slash", function (c) c.sticky = not c.sticky end, {description = "toggle sticky", group = "client"}), -- Original Keep On Top Function @@ -407,7 +407,7 @@ clientkeys = gears.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, "Mod1" }, "m", + awful.key({ modkey, "Shift" }, "m", function (c) -- The client currently has the input focus, so it cannot be -- minimized, since minimized clients can't have the focus. @@ -426,7 +426,7 @@ clientkeys = gears.table.join( c:raise() end , {description = "(un)maximize vertically", group = "client"}), - awful.key({ modkey, "Shift" }, "m", + awful.key({ modkey, "Mod1" }, "m", function (c) c.maximized_horizontal = not c.maximized_horizontal c:raise() @@ -460,7 +460,7 @@ for i = 1, 9 do end, {description = "toggle tag #" .. i, group = "tag"}), ]]-- -- Move client to tag. - awful.key({ modkey, "Mod1" }, "#" .. i + 9, + awful.key({ modkey, "Shift" }, "#" .. i + 9, function () if client.focus then local tag = client.focus.screen.tags[i] @@ -471,7 +471,7 @@ for i = 1, 9 do end, {description = "move focused client to tag #"..i, group = "tag"}), -- Move client to prev/next tag and switch to it - awful.key({ modkey, "Mod1" }, "Left", + awful.key({ modkey, "Shift" }, "Left", function () -- get current tag local t = client.focus and client.focus.first_tag or nil @@ -484,7 +484,7 @@ for i = 1, 9 do awful.tag.viewprev() end, {description = "move client to previous tag and switch to it", group = "tag"}), - awful.key({ modkey, "Mod1" }, "Right", + awful.key({ modkey, "Shift" }, "Right", function () -- get current tag local t = client.focus and client.focus.first_tag or nil -- cgit v1.2.3