diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-30 00:00:14 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-30 00:00:14 +0530 |
commit | 2916b9f0a816bb16a062bb84ade0b21df0eb2b80 (patch) | |
tree | 51f4bb028ba48beac74a40be802e50d6213002a2 /.config/awesome/rc.lua | |
parent | 17b9514edb976334cc635f24916350907c1c80d8 (diff) |
Attempted to make my bar colorful but made it worse, i'll sleep now
Diffstat (limited to '.config/awesome/rc.lua')
-rw-r--r-- | .config/awesome/rc.lua | 64 |
1 files changed, 37 insertions, 27 deletions
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 |