I am interested by the answers because I intend to use a bepo keyboard
in a standard basis. For now, I am in the learning stage.
I use awesome v3.4.5. To use the bepo keyboard, I type
~$ setxkbmap fr bepo
See http://bepo.fr/wiki/Installation (I assume you are a french awesome
user...)
To my knowledge, the bepo mapping concerns ONLY the alphanumerical part,
NOT the arrows keys, the numerical keyboard, the
insert-supp-home-end-top-down keys and the function keys. That works
fine for me, so I did not need to remap any keys in my rc.lua .
My rc.lua keybindings :
******************************************
-- {{{ 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, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "w", function ()
mymainmenu:show({keygrabber=true}) end),
-- Layout manipulation
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, "Control" }, "j", function ()
awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "k", function ()
awful.screen.focus_relative(-1) end),
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
awful.key({ modkey, }, "Return", function ()
awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function ()
awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function ()
awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "h", function ()
awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Shift" }, "l", function ()
awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "h", function ()
awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", 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),
-- Apwal appelé avec la touche *
awful.key({ modkey, }, "*", function ()
awful.util.spawn("apwal") end),
-- Fin de Apwal
-- Prompt
awful.key({ modkey }, "r", function ()
mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "x",
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" }, "c", 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, }, "o",
awful.client.movetoscreen ),
awful.key({ modkey, "Shift" }, "r", function (c) c:redraw()
end),
awful.key({ modkey, }, "t", function (c) c.ontop =
not c.ontop end),
awful.key({ modkey, }, "n", function (c) c.minimized
= not c.minimized end),
awful.key({ modkey, }, "m",
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)
-- }}}
******************************************
By the way, could you say me what kind of keyboard do you use ? Do you
purchased a Dvorak one ? and what manufacturer and model ?
Thanks.
Jean-Luc
Le 01/08/2010 23:54, Jhonny Boy a écrit :
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)
-- }}}
--
To unsubscribe, send mail to [email protected].