You are not logged in.

#1 2011-03-06 10:08:55

Deusdies
Member
Registered: 2010-09-13
Posts: 116

So, I have a somewhat weird question regarding custom keyboard mapping

No room in the title, but this thread should be marked as [SOLVED]. Because that's what it is. Solved.

I'm from Serbia. In Serbian language, we have a few extra characters: š,đ,č,ć,ž

With Shift+Alt I can switch between keyboard layouts. However, this can sometimes be a hassle more than it seems to be.

There is a small app for Windows called srpskey. Basically what it does is it every time you type cx, it immediately replaces it with č. When you type cq, it's ć, dq is đ, zx is ž, and finally sx is š. Being as that English and Serbian barely ever use cx,cq, etc, this is VERY convenient and now I'm used to typing that way.

I tried wine, alas no luck. Is there a way I could make this work under Linux?

Last edited by Deusdies (2011-03-06 11:23:10)


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#2 2011-03-06 10:15:00

Cody
Member
Registered: 2010-11-08
Posts: 42

Re: So, I have a somewhat weird question regarding custom keyboard mapping

I think something like autokey would work.

Offline

#3 2011-03-06 11:04:53

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: So, I have a somewhat weird question regarding custom keyboard mapping

Holy crap it worked! Took a while to figure out API, but it works! For future reference, this is basically what script looks like for one character:

system.exec_command("setxkbmap me") #me = montenegro keyboard. rs equals in cyrilic, I don't need that
keyboard.send_keys("[")
system.exec_command("setxkbmap us")

Thanks a lot man!

Last edited by Deusdies (2011-03-06 11:05:07)


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

Board footer

Powered by FluxBB