Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm looking for a way to remove all xmodmap tweaks temporarily, preferably from the commandline. I have a couple of non-commandline workarounds:
- Log out, log back in.
- Unplug the USB keyboard and plug it back in.
- Go to keyboard preferences > layouts > options, change one of the options and close, then change the option back to what it was and close again. (I hoped that cnee would be able to reproduce the sequence of actions, but no dice -- apparently when the keyboard gets reset, cnee gets confused and stops playing. Or maybe it stopped recording, not sure.)
Reason (important, since this might rule out some solutions):
I'm using xmodmap to move the control keys next to the space bar. I have a RSI and it's painful to stretch all the way to the edge of the keyboard frequently.
I also use virtualbox to run NaturallySpeaking (tried wine, not stable enough). Virtualbox does not get along with xmodmap. Apparently xmodmap causes the OS to report a different keyboard identifier. Virtualbox doesn't recognize that ID and as a result, key codes sent into the guest are all wrong. (But, if I run xmodmap after the virtual machine is up, no problem.)
So what I need to do, probably 3-5 times a day, is to reset the keyboard just so I can start the virtual machine, then rerun my xmodmap script.
I'm not sure if it will help to run a different xmodmap script that returns the modifiers to their original position. That might not reset the ID that virtualbox reads from the OS.
Any ideas? (This forum seems like my last, best hope. I've asked a few times about xmodmap over at Ubuntuforums -- nobody has a clue about it over there.)