.config/awesome/rc.lua

This commit is contained in:
Tom Willemsen 2012-10-07 22:14:27 +02:00
parent dd7c1d4aa0
commit 02a49112c3

View file

@ -227,11 +227,7 @@ local bind = keychain
local sub = keychain.sub local sub = keychain.sub
globalkeys = awful.util.table.join( globalkeys = awful.util.table.join(
bind({ "Control", }, "i", bind({ "Control", }, "i",
{ sub({ }, "o", { sub({ }, "space", ext.next_client),
function ()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
sub({ "Shift", }, "o", sub({ "Shift", }, "o",
function () awful.screen.focus_relative(1) end), function () awful.screen.focus_relative(1) end),
sub({ "Shift", }, "1", sub({ "Shift", }, "1",
@ -245,7 +241,8 @@ globalkeys = awful.util.table.join(
sub({ }, "e", oni.ror_editor), sub({ }, "e", oni.ror_editor),
sub({ "Shift", }, "e", oni.run_editor), sub({ "Shift", }, "e", oni.run_editor),
sub({ }, "w", oni.ror_browser), sub({ }, "w", oni.ror_browser),
sub({ "Shift", }, "w", oni.run_browser) }), sub({ "Shift", }, "w", oni.run_browser),
sub({ "Control", }, "i", ext.prev_client) }),
awful.key({ "Control", "Mod1" }, "l", awful.key({ "Control", "Mod1" }, "l",
function () awful.util.spawn("i3lock -c 000000") end), function () awful.util.spawn("i3lock -c 000000") end),
awful.key({ modkey, }, "Left", awful.tag.viewprev ), awful.key({ modkey, }, "Left", awful.tag.viewprev ),
@ -258,13 +255,6 @@ globalkeys = awful.util.table.join(
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto), awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program -- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),