I guess keybindings don't work because for example you are typing Mod-4 ψ
instead of Mod-4 c to close a program, and awesome doesn't know what Mod-4 ψ
means.
In your rc.lua you should find a section with keybindings that look like this:
awful.key({ modkey, "Shift" }, "c", function (c) c:kill()
end),
You should duplicate them with greek letters so that each keybinding is like
this:
awful.key({ modkey, "Shift" }, "c", function (c) c:kill()
end),
awful.key({ modkey, "Shift" }, "ψ", function (c) c:kill()
end),
That should work, I think.
On Sun, 10 Mar 2013 14:03:26 +0200
Χάρης Καραχριστιανίδης <[email protected]> wrote:
> I followed this guide http://awesome.naquadah.org/wiki/Change_keyboard_maps
> and
> pasted
>
> -- Keyboard map indicator and changer
> kbdcfg = {}
> kbdcfg.cmd = "setxkbmap"
> kbdcfg.layout = { { "us", "" }, { "gr", "" } }
> kbdcfg.current = 1 -- us is our default layout
> kbdcfg.widget = wibox.widget.textbox()
> kbdcfg.widget:set_text(" " .. kbdcfg.layout[kbdcfg.current][1] .. " ")
> kbdcfg.switch = function ()
> kbdcfg.current = kbdcfg.current % #(kbdcfg.layout) + 1
> local t = kbdcfg.layout[kbdcfg.current]
> kbdcfg.widget:set_text(" " .. t[1] .. " ")
> os.execute( kbdcfg.cmd .. " " .. t[1] .. " " .. t[2] )
> end
>
> -- Mouse bindings
> kbdcfg.widget:buttons(
> awful.util.table.join(awful.button({ }, 1, function () kbdcfg.switch() end))
> )
>
> and
>
> -- Alt + Right Shift switches the current keyboard layout
> awful.key({ "Mod1" }, "Shift_R", function () kbdcfg.switch() end),
>
>
>
>
>
> It woks for me, but in weird way. When I switch to "gr" layout, the
> keybindings does not work. How I can make keybinding independent on
> keyboard layout?
> Also the key layout switch depends on the sequences of pressed buttons. If
> I press Shift+Alt it does not work.
--
We are Pentium of Borg. Division is futile. You will be approximated.
-- seen in someone's .signature
--
To unsubscribe, send mail to [email protected].