SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am wondering whether it is possible to remap the keyboard for only a single instance of a terminal (i.e. xterm) in xwindows?
I have my keyboard set to dvorak in general, but a certain application requires me to use the qwerty layout because of the arrangement of keys. What I want to do is be able to just start xterm and enter some command to change the layout for that xterm so that any subsequent applications run from that terminal use the qwerty layout. However, all other windows in X and the other consoles should still use the dvorak layout.
Yes, I have done that already. I am able to get X to run with the dvorak keyboard layout. However, what I want to be able to do is open up a terminal window in X (that currently uses the dvorak layout), run a command to change only _that_ terminal to a qwerty layout, and then be able to run a program from that terminal using the qwerty layout while the rest of X uses the dvorak layout. I don't want to have to edit the file and restart X.
Oh, they are FPS games, namely America's Army and Wolfenstein: Enemy Territory. Some newer games automatically remap the keys if you are in a different layout, but not these. In principal, I can manually relay all the keybindings in the game, but I'd rather not do that.
Pardon my ignorance, but wouldn't it be easier to just change the keybindings in the game itself? I'd be very surprised if these two games did not allow custom keys to be chosen by the player for switching weapons, moving around, etc.
Yes, as I mentioned in the previous post, that is one way to do it. All I'm wondering is if there's a simpler way rather than manually changing all keybindings within the game.
Well, I think that's what I was asking; how is it simpler to 1) get xterm to specify a specific instance (the one where you're playing the game, rather than the one where you're installing something with pkgtool or whatever else one might do in an xterm), and then 2) change the keyboard layout for that instance and 3) pass the changed layout to the program running in the Xterm (which may not even accept this action), than it is to 1) change the configuration of the keys in the application once? Unless of course, you play these games with both kinds of keyboard, so you'd need to switch them, depending on which keyboard you happened to be using at the time.
Perhaps you could write a short script to start these games. One which would either start the game in a new instance of X that used a different configuration file (changing the keyboard), or one which exported the keyboardmap variable before starting the game.
Just an idea, as I have never had to change my keyboardmap on the fly, or for a limited period, but maybe it will help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.