From 72e7e64f89eebb59311a412db34844d01b2ca2a0 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 28 May 2019 01:09:11 +0200 Subject: Use arrows instead of vim hjkl --- rc.lua | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/rc.lua b/rc.lua index 27826c1..e4ff257 100644 --- a/rc.lua +++ b/rc.lua @@ -280,20 +280,16 @@ root.buttons(awful.util.table.join( globalkeys = awful.util.table.join( 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"}), - awful.key({ modkey, }, "Right", awful.tag.viewnext, - {description = "view next", group = "tag"}), awful.key({ modkey, }, "Escape", awful.tag.history.restore, {description = "go back", group = "tag"}), - awful.key({ modkey, }, "j", + awful.key({ modkey, }, "Down", function () awful.client.focus.byidx( 1) end, {description = "focus next by index", group = "client"} ), - awful.key({ modkey, }, "k", + awful.key({ modkey, }, "Up", function () awful.client.focus.byidx(-1) end, @@ -301,13 +297,13 @@ globalkeys = awful.util.table.join( ), -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end, + awful.key({ modkey, "Shift" }, "Down", function () awful.client.swap.byidx( 1) end, {description = "swap with next client by index", group = "client"}), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end, + awful.key({ modkey, "Shift" }, "Up", function () awful.client.swap.byidx( -1) end, {description = "swap with previous client by index", group = "client"}), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end, + awful.key({ modkey, "Control" }, "Down", 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, + awful.key({ modkey, "Control" }, "Up", function () awful.screen.focus_relative(-1) end, {description = "focus the previous screen", group = "screen"}), awful.key({ modkey, }, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}), @@ -339,17 +335,17 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "c", function () awful.spawn(calc) end, {description = "run calculator", group = "launcher"}), - awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end, + awful.key({ modkey, }, "Left", function () awful.tag.incmwfact( 0.05) end, {description = "increase master width factor", group = "layout"}), - awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end, + awful.key({ modkey, }, "Right", function () awful.tag.incmwfact(-0.05) end, {description = "decrease master width factor", group = "layout"}), - awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end, + awful.key({ modkey, "Shift" }, "Right", function () awful.tag.incnmaster( 1, nil, true) end, {description = "increase the number of master clients", group = "layout"}), - awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1, nil, true) end, + awful.key({ modkey, "Shift" }, "Left", function () awful.tag.incnmaster(-1, nil, true) end, {description = "decrease the number of master clients", group = "layout"}), - awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1, nil, true) end, + awful.key({ modkey, "Control" }, "Right", function () awful.tag.incncol( 1, nil, true) end, {description = "increase the number of columns", group = "layout"}), - awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end, + awful.key({ modkey, "Control" }, "Left", function () awful.tag.incncol(-1, nil, true) end, {description = "decrease the number of columns", group = "layout"}), awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end, {description = "select next", group = "layout"}), -- cgit v1.2.3