aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xawesome/rc.lua63
1 files changed, 40 insertions, 23 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index deb9b039..07c9aaa6 100755
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -233,20 +233,32 @@ root.buttons(gears.table.join(
globalkeys = gears.table.join(
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{description="show help", group="awesome"}),
- awful.key({ modkey, }, "Left", awful.tag.viewprev,
+ awful.key({ "Mod1", }, "h", awful.tag.viewprev,
{description = "view previous", group = "tag"}),
- awful.key({ modkey, }, "Right", awful.tag.viewnext,
+ awful.key({ "Mod1", }, "l", 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({ "Mod4", }, "j",
function ()
awful.client.focus.byidx( 1)
end,
{description = "focus next by index", group = "client"}
),
- awful.key({ modkey, }, "k",
+ awful.key({ "Mod4", }, "k",
+ function ()
+ awful.client.focus.byidx(-1)
+ end,
+ {description = "focus previous by index", group = "client"}
+ ),
+ awful.key({ "Mod1", }, "j",
+ function ()
+ awful.client.focus.byidx( 1)
+ end,
+ {description = "focus next by index", group = "client"}
+ ),
+ awful.key({ "Mod1", }, "k",
function ()
awful.client.focus.byidx(-1)
end,
@@ -256,15 +268,15 @@ globalkeys = gears.table.join(
{description = "show main menu", group = "awesome"}),
-- Layout manipulation
- awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,
+ awful.key({ "Mod1", "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,
+ awful.key({ "Mod1", "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,
{description = "focus the next screen", group = "screen"}),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
{description = "focus the previous screen", group = "screen"}),
- awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
+ awful.key({ "Mod1", }, "u", awful.client.urgent.jumpto,
{description = "jump to urgent client", group = "client"}),
awful.key({ modkey, }, "Tab",
function ()
@@ -283,13 +295,13 @@ 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,
+ awful.key({ modkey, }, "h", 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, }, "l", 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" }, "l", 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" }, "h", 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"}),
@@ -297,10 +309,10 @@ globalkeys = gears.table.join(
{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,
+ awful.key({ "Mod1", }, "space", function () awful.layout.inc(-1) end,
{description = "select previous", group = "layout"}),
- awful.key({ modkey, "Control" }, "n",
+ awful.key({ "Mod1", }, "o",
function ()
local c = awful.client.restore()
-- Focus restored client
@@ -312,8 +324,8 @@ globalkeys = gears.table.join(
end,
{description = "restore minimized", group = "client"}),
- -- Prompt
- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
+ -- This launched dmenu
+ awful.key({ "Mod1" }, "Return", function () awful.spawn.with_shell("dmenu_run") end,
{description = "run prompt", group = "launcher"}),
awful.key({ modkey }, "x",
@@ -329,8 +341,13 @@ globalkeys = gears.table.join(
-- Menubar
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "launcher"})
+
+
+
)
+
+
clientkeys = gears.table.join(
awful.key({ modkey, }, "f",
function (c)
@@ -338,36 +355,36 @@ clientkeys = gears.table.join(
c:raise()
end,
{description = "toggle fullscreen", group = "client"}),
- awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end,
+ awful.key({ "Mod1", }, "w", function (c) c:kill() end,
{description = "close", group = "client"}),
- awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
+ awful.key({ "Mod1" }, "i", awful.client.floating.toggle ,
{description = "toggle floating", group = "client"}),
- awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
+ awful.key({ modkey, "Shift" }, "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,
{description = "move to screen", group = "client"}),
- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
+ awful.key({ "Mod1", }, "t", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}),
- awful.key({ modkey, }, "n",
+ awful.key({ "Mod1", "Shift" }, "o",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end ,
{description = "minimize", group = "client"}),
- awful.key({ modkey, }, "m",
+ awful.key({ "Mod1", }, "p",
function (c)
c.maximized = not c.maximized
c:raise()
end ,
{description = "(un)maximize", group = "client"}),
- awful.key({ modkey, "Control" }, "m",
+ awful.key({ "Mod4" }, "s",
function (c)
c.maximized_vertical = not c.maximized_vertical
c:raise()
end ,
{description = "(un)maximize vertically", group = "client"}),
- awful.key({ modkey, "Shift" }, "m",
+ awful.key({ "Mod4" }, "a",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c:raise()