aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorBlista Kanjo2023-07-26 20:16:04 -0400
committerBlista Kanjo2023-07-26 20:16:04 -0400
commite879bd8d9d6e06c3c0005eb449c40b3f4de99664 (patch)
treed562fa31ae38205110fe6f35512bd7fe5bb89f84 /.config
parentd87dd38e535a9e71ef73c218f4e39c948a6ac69e (diff)
refactor: going with more conventional keybinds
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/rc.lua17
1 files changed, 14 insertions, 3 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 935904a..9122cab 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -356,7 +356,7 @@ globalkeys = gears.table.join(
awful.key({ modkey, "Mod1" }, "h", function () awful.client.focus.global_bydirection("left") client.focus:raise() end,
{description = "focus to next window left", group = "client"}),
- -- alt-tab functionality in maximized layout
+ -- go back to previous focused client
awful.key({ "Mod1", }, "Tab",
function ()
awful.client.focus.history.previous()
@@ -364,7 +364,15 @@ globalkeys = gears.table.join(
client.focus:raise()
end
end,
- {description = "go back", group = "client"}),
+ {description = "go back to previous client", group = "client"}),
+ awful.key({ modkey }, "grave",
+ function ()
+ awful.client.focus.history.previous()
+ if client.focus then
+ client.focus:raise()
+ end
+ end,
+ {description = "go back to previous client", group = "client"}),
-- application hotkeys
--[[ Template
awful.key({ [KEY], [KEY] }, [KEY], function () awful.spawn("[APPLICATION_NAME]") end,
@@ -420,7 +428,7 @@ globalkeys = gears.table.join(
{description = "gnome-system-monitor", group = "launcher"}),
-- clipboard manager
- awful.key({ modkey }, "grave", function () awful.spawn.easy_async_with_shell("xfce4-clipman-history") end,
+ awful.key({ modkey }, "v", function () awful.spawn.easy_async_with_shell("xfce4-clipman-history") end,
{description = "open clipboard history", group = "launcher"}),
-- on-the-fly window gaps configuration
@@ -431,6 +439,9 @@ globalkeys = gears.table.join(
awful.key({modkey}, "backslash", function () awful.screen.focused().selected_tag.gap = 5 end,
{description = "reset window gaps", group = "client"}),
+ -- launch choose-xrandr-gui
+ awful.key({ modkey }, "p", function () awful.spawn.easy_async_with_shell("~/.local/bin/choose-xrandr-gui") end,
+ {description = "choose an xrandr gui for display configuration", group = "launcher"}),
-- tiled client resizing
-- h,j,k,l binds