diff options
-rwxr-xr-x | awesome/rc.lua | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index 086c0d33..c3eacdaa 100755 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -310,10 +310,19 @@ globalkeys = gears.table.join( {description = "show main menu", group = "awesome"}), -- Layout manipulation - awful.key({ "Mod1", "Shift" }, "j", function () awful.client.swap.byidx( 1) end, - {description = "swap with next client by index", group = "client"}), - awful.key({ "Mod1", "Shift" }, "k", function () awful.client.swap.byidx( -1) end, - {description = "swap with previous client by index", group = "client"}), + awful.key({ "Mod4", "Shift" }, "h", function () awful.client.swap.bydirection("left") end, + {description = "move client to the left", group = "client"}), + awful.key({ "Mod4", "Shift" }, "j", function () awful.client.swap.bydirection("down") end, + {description = "move client downwards", group = "client"}), + awful.key({ "Mod4", "Shift" }, "k", function () awful.client.swap.bydirection("up") end, + {description = "move client upwards", group = "client"}), + awful.key({ "Mod4", "Shift" }, "l", function () awful.client.swap.bydirection("right") end, + {description = "move client to the right", group = "client"}), + + + + + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end, {description = "focus the next screen", group = "screen"}), awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end, @@ -334,9 +343,9 @@ globalkeys = gears.table.join( awful.key({ modkey, "Shift" }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}), - awful.key({ modkey, }, "h", function () awful.tag.incmwfact( 0.05) end, + awful.key({ "Mod1", }, "j", function () awful.tag.incmwfact( 0.05) end, {description = "increase master width factor", group = "layout"}), - awful.key({ modkey, }, "l", function () awful.tag.incmwfact(-0.05) end, + awful.key({ "Mod1", }, "k", function () awful.tag.incmwfact(-0.05) end, {description = "decrease master width factor", group = "layout"}), awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster( 1, nil, true) end, {description = "increase the number of master clients", group = "layout"}), |