aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-29 23:09:54 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-29 23:09:54 +0530
commit84d4bbe6249a5cd4b06b42e8b19376eae3358826 (patch)
tree7f965fb18681276783d1cb8d630b0e15f7e28573 /.config
parentecf5ee3a4ccc62ca203646ee6cbb016bf1216bd1 (diff)
Update default AwesomeWM keybindings
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/rc.lua57
1 files changed, 27 insertions, 30 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 794107a..0103914 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -120,8 +120,8 @@ local taglist_buttons = gears.table.join(
client.focus:toggle_tag(t)
end
end),
- awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
- awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
+ awful.button({ }, 4, function(t) awful.tag.viewprev(t.screen) end),
+ awful.button({ }, 5, function(t) awful.tag.viewnext(t.screen) end)
)
local tasklist_buttons = gears.table.join(
@@ -226,7 +226,7 @@ root.buttons(gears.table.join(
-- {{{ Key bindings
globalkeys = gears.table.join(
- awful.key({ modkey, }, "s", hotkeys_popup.show_help,
+ awful.key({ modkey, }, "F1", hotkeys_popup.show_help,
{description="show help", group="awesome"}),
awful.key({ not_modkey, }, "h", awful.tag.viewprev,
{description = "view previous", group = "tag"}),
@@ -235,6 +235,7 @@ 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),
@@ -248,6 +249,12 @@ globalkeys = gears.table.join(
if client.focus then client.focus:raise() end
end),
+ -- swapping clients with hjkl
+ awful.key({ modkey }, "j", awful.client.swap.bydirection("down")),
+ awful.key({ modkey }, "k", awful.client.swap.bydirection("up")),
+ awful.key({ modkey }, "h", awful.client.swap.bydirection("left")),
+ awful.key({ modkey }, "l", awful.client.swap.bydirection("right")),
+
awful.key({ not_modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
@@ -260,18 +267,18 @@ globalkeys = gears.table.join(
end,
{description = "focus previous by index", group = "client"}
),
+
awful.key({ modkey, }, "p", function () mymainmenu:show() end,
{description = "show main menu", group = "awesome"}),
+ -- Menubar
+ awful.key({ modkey, "Shift" }, "p", function() menubar.show() end,
+ {description = "show the menubar", group = "launcher"}),
- -- Layout manipulation
- awful.key({ modkey, "Shift" }, "j", 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,
- {description = "swap with previous client by index", group = "client"}),
- awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
+ awful.key({ modkey }, "[", 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 }, "]", 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"}),
awful.key({ modkey, }, "Tab",
@@ -291,18 +298,6 @@ globalkeys = gears.table.join(
awful.key({ modkey, "Shift" }, "q", awesome.quit,
{description = "quit awesome", group = "awesome"}),
- awful.key({ modkey, }, "l", 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,
- {description = "decrease master width factor", group = "layout"}),
- awful.key({ modkey, "Shift" }, "h", 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,
- {description = "decrease the number of master clients", group = "layout"}),
- awful.key({ modkey, "Control" }, "h", 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,
- {description = "decrease the number of columns", group = "layout"}),
awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end,
{description = "select next", group = "layout"}),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
@@ -333,10 +328,7 @@ globalkeys = gears.table.join(
history_path = awful.util.get_cache_dir() .. "/history_eval"
}
end,
- {description = "lua execute prompt", group = "awesome"}),
- -- Menubar
- awful.key({ modkey, "Shift" }, "p", function() menubar.show() end,
- {description = "show the menubar", group = "launcher"})
+ {description = "lua execute prompt", group = "awesome"})
)
clientkeys = gears.table.join(
@@ -346,16 +338,21 @@ clientkeys = gears.table.join(
c:raise()
end,
{description = "toggle fullscreen", group = "client"}),
+
+ awful.key({ modkey, "Shift" }, "f", awful.client.floating.toggle ,
+ {description = "toggle floating", group = "client"}),
+
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end,
{description = "close", group = "client"}),
- awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
- {description = "toggle floating", group = "client"}),
+
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
{description = "move to master", group = "client"}),
- awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
+
+ awful.key({ modkey, }, "s", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}),
- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
+ awful.key({ modkey, "Shift" }, "s", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}),
+
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be