I have some apps I like to use from time to time for which I would like to use slightly different keyboard maps.
For example, from time to time I play Larn. I like to use the numeric keypad as a directional movement control. But Larn is natively set up to use the "yujklhnm" movement type keys. So, in order to remap that, I use a little script which actually runs the program, and which uses xmodmap to set up the mapping, runs the actual program, then sets things back.
The main drawback with doing this is that it changes the keymap for everything running at the time, which is not desirable.
So, either I'm ignorant of a better way, or I'll have to live with what I've got, or I'll have to fiddle the source to Larn somewhat.
Can anyone give me advice on how to use different key maps for different apps running concurrently without interfering with each other?
Thanks for your time.
Mike
On Tue, 2007-05-01 at 19:05 -0500, Mike McCarty wrote:
I have some apps I like to use from time to time for which I would like to use slightly different keyboard maps.
For example, from time to time I play Larn. I like to use the numeric keypad as a directional movement control. But Larn is natively set up to use the "yujklhnm" movement type keys. So, in order to remap that, I use a little script which actually runs the program, and which uses xmodmap to set up the mapping, runs the actual program, then sets things back.
The main drawback with doing this is that it changes the keymap for everything running at the time, which is not desirable.
So, either I'm ignorant of a better way, or I'll have to live with what I've got, or I'll have to fiddle the source to Larn somewhat.
Can anyone give me advice on how to use different key maps for different apps running concurrently without interfering with each other?
Thanks for your time.
Mike
I don´t have a certain answer, but I´m also interested in this topic. In the past I solved this issue using this workaround: run your app under Xnest or Xephyr and set xmodmap just for this clients (you could use your scripts with these displays, and they will not affect your others :0 display settings) Also check the following link, which apparently shows that xmodmap can be app-specific: http://www.in-ulm.de/~mascheck/X11/xmodmap.html#applicationspecific (but I couldn´t test it on FC) Regards EX
-- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I can explain it for you, but I can't understand it for you. I speak only for myself, and I am unanimous in that!
I have little different problem. I want my FC6 to remeber last keyboard layout in every application. So if i write in icq client in russian and in firefox i use english layout, i will not have to change from russian to english every time. It is possible? (In windows XP it worked like this by default)
On 5/2/07, Esteban Xandri esteban.xandri@speedy.com.ar wrote:
On Tue, 2007-05-01 at 19:05 -0500, Mike McCarty wrote:
I have some apps I like to use from time to time for which I would like to use slightly different keyboard maps.
For example, from time to time I play Larn. I like to use the numeric keypad as a directional movement control. But Larn is natively set up to use the "yujklhnm" movement type keys. So, in order to remap that, I use a little script which actually runs the program, and which uses xmodmap to set up the mapping, runs the actual program, then sets things back.
The main drawback with doing this is that it changes the keymap for everything running at the time, which is not desirable.
So, either I'm ignorant of a better way, or I'll have to live with what I've got, or I'll have to fiddle the source to Larn somewhat.
Can anyone give me advice on how to use different key maps for different apps running concurrently without interfering with each other?
Thanks for your time.
Mike
I don´t have a certain answer, but I´m also interested in this topic. In the past I solved this issue using this workaround: run your app under Xnest or Xephyr and set xmodmap just for this clients (you could use your scripts with these displays, and they will not affect your others :0 display settings) Also check the following link, which apparently shows that xmodmap can be app-specific: http://www.in-ulm.de/~mascheck/X11/xmodmap.html#applicationspecific (but I couldn´t test it on FC) Regards EX
-- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I can explain it for you, but I can't understand it for you. I speak only for myself, and I am unanimous in that!
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
On Wednesday 2007-05-02 11:10:27 Andrey Shmigelsky wrote:
I have little different problem. I want my FC6 to remeber last keyboard layout in every application. So if i write in icq client in russian and in firefox i use english layout, i will not have to change from russian to english every time. It is possible? (In windows XP it worked like this by default)
...
I use kkbswitch in toggle mode per application (kkbswitch.sf.net).