Hello I am using a bepo keyboard and I install awesome from ubuntu's lucid lynx
repository. (3.4)
I tried to change the keybinding to fit with my beyboard layout.
Now a lot of my key are just uneffective.
Does anyone know why?
Here is the keybinding part of my file :
-- {{{ Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "s",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "t",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
-- awful.key({ modkey, }, "w", function ()
mymainmenu:show(true) end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "s", function () awful.client.swap.byidx(
1) end),
awful.key({ modkey, "Shift" }, "t", function () awful.client.swap.byidx(
-1) end),
awful.key({ modkey, "Control" }, "t", function ()
awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "s", function ()
awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "v", 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
awful.key({ modkey, }, "Return", function ()
awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "z", awesome.restart),
awful.key({ modkey, "Shift" }, "z", awesome.quit),
awful.key({ modkey, }, "r", function () awful.tag.incmwfact(
0.05) end),
awful.key({ modkey, }, "n", function ()
awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "n", function () awful.tag.incnmaster(
1) end),
awful.key({ modkey, "Shift" }, "r", function ()
awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "n", function () awful.tag.incncol(
1) end),
awful.key({ modkey, "Control" }, "r", function ()
awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function ()
awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function ()
awful.layout.inc(layouts, -1) end),
-- Prompt
awful.key({ modkey }, "o", function ()
mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "u",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
end)
)
clientkeys = awful.util.table.join(
awful.key({ modkey, }, "f", function (c) c.fullscreen = not
c.fullscreen end),
awful.key({ modkey, "Shift" }, "y", function (c)
c:kill() end),
awful.key({ modkey, "Control" }, "space",
awful.client.floating.toggle ),
awful.key({ modkey, "Control" }, "Return", function (c)
c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "c",
awful.client.movetoscreen ),
awful.key({ modkey, "Shift" }, "o", function (c)
c:redraw() end),
awful.key({ modkey, }, "m", function (c) c.minimized = not
c.minimized end),
awful.key({ modkey, }, "i",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end)
)
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber));
end
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Set keys
root.keys(globalkeys)
-- }}}