Jhonny Boy wrote:
Hello everyone
I am using a dvorak bépo keyboard. I try to configured the 1,2,3,4,5,6,7,8,9 keys of 
the keyboard to switch Desktop but in bépo it's a ",«,»,(,),@,+,-,/,*
but some key doesn't work. Is there any way in awesome 3.2 to identify the key 
by a number?
Best regard

Here's how I do it for an azerty keyboard (should be compatible with any kind of keyboard):

=====================================8<-----------------------------------
for i = 1, keynumber do
    globalkeys = awful.util.table.join(globalkeys,
        awful.key({ modkey }, '#1' .. i-1,
                  function ()
                        local screen = mouse.screen
                        if tags[screen][i] then
                            awful.tag.viewonly(tags[screen][i])
                        end
                  end),
        awful.key({ modkey, "Control" }, '#1' .. i-1,
                  function ()
                      local screen = mouse.screen
                      if tags[screen][i] then
tags[screen][i].selected = not tags[screen][i].selected
                      end
                  end),
        awful.key({ modkey, "Shift" }, '#1' .. i-1,
                  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" }, '#1' .. i-1,
                  function ()
if client.focus and tags[client.focus.screen][i] then

awful.client.toggletag(tags[client.focus.screen][i])
                      end
                  end),
        awful.key({ modkey, "Shift" }, "F" .. i,
                  function ()
                      local screen = mouse.screen
                      if tags[screen][i] then
for k, c in pairs(awful.client.getmarked()) do

awful.client.movetotag(tags[screen][i], c)
                          end
                      end
                   end))
end

------------------------------->8==================================

                Jerome
--
mailto:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to