From 2916b9f0a816bb16a062bb84ade0b21df0eb2b80 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Wed, 30 Jun 2021 00:00:14 +0530 Subject: Attempted to make my bar colorful but made it worse, i'll sleep now --- .config/awesome/rc.lua | 64 +++++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 27 deletions(-) (limited to '.config/awesome/rc.lua') diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index e3ffc11..37dc176 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -235,33 +235,6 @@ globalkeys = gears.table.join( awful.key({ modkey, }, "Escape", awful.tag.history.restore, {description = "go back", group = "tag"}), - -- focusing clients with hjkl - awful.key({ modkey }, "j", function () awful.client.focus.bydirection("down") - if client.focus then client.focus:raise() end - end), - awful.key({ modkey }, "k", function () awful.client.focus.bydirection("up") - if client.focus then client.focus:raise() end - end), - awful.key({ modkey }, "h", function () awful.client.focus.bydirection("left") - if client.focus then client.focus:raise() end - end), - awful.key({ modkey }, "l", function () awful.client.focus.bydirection("right") - if client.focus then client.focus:raise() end - end), - - -- swapping clients with hjkl - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.bydirection("down") - if client.focus then client.focus:raise() end - end), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.bydirection("up") - if client.focus then client.focus:raise() end - end), - awful.key({ modkey, "Shift" }, "h", function () awful.client.swap.bydirection("left") - if client.focus then client.focus:raise() end - end), - awful.key({ modkey, "Shift" }, "l", function () awful.client.swap.bydirection("right") - if client.focus then client.focus:raise() end - end), awful.key({ not_modkey, }, "j", function () @@ -340,6 +313,43 @@ globalkeys = gears.table.join( ) clientkeys = gears.table.join( + -- focusing clients with hjkl + awful.key({ modkey }, "j", function () awful.client.focus.bydirection("down") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey }, "k", function () awful.client.focus.bydirection("up") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey }, "h", function () awful.client.focus.bydirection("left") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey }, "l", function () awful.client.focus.bydirection("right") + if client.focus then client.focus:raise() end + end), + + -- swapping clients with hjkl + awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.bydirection("down") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.bydirection("up") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, "Shift" }, "h", function () awful.client.swap.bydirection("left") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, "Shift" }, "l", function () awful.client.swap.bydirection("right") + if client.focus then client.focus:raise() end + end), + + -- resizing clients with hjkl + awful.key({ modkey, "Mod1" }, "j", function () awful.client.incwfact( 0.01) end), + awful.key({ modkey, "Mod1" }, "k", function () awful.client.incwfact(-0.01) end), + awful.key({ modkey, "Mod1" }, "h", function () awful.tag.incmwfact(-0.01) end), + awful.key({ modkey, "Mod1" }, "l", function () awful.tag.incmwfact( 0.01) end), + + awful.key({ modkey, "Shift" }, "]", function (c) c:relative_move( 20, 20, -40, -40) end), + awful.key({ modkey, "Shift" }, "[", function (c) c:relative_move(-20, -20, 40, 40) end), + awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen -- cgit v1.2.3