[opensuse] Left Control key
Hi Everybody. I'm hoping that somebody out there can tell me how to unmap the left control key on my ThinkPad T61p running openSUSE 11.0. I suffer from some paralysis in my left hand and find that sometimes when typing I will lose control of one or more of the fingers on my left hand which then does something frustrating like press CTRL-Z (Imagine how frustrating it is to have the last edits suddenly disappear.) Anyway, can anyone tell me how I can add something to my .bashrc or something so that pressing the left Control key doesn't register? aTdHvAaNnKcSe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday February 14 2009, Jay C Vollmer wrote:
Hi Everybody.
I'm hoping that somebody out there can tell me how to unmap the left control key on my ThinkPad T61p running openSUSE 11.0.
...
Anyway, can anyone tell me how I can add something to my .bashrc or something so that pressing the left Control key doesn't register?
Warning: This isn't something I know much about, but I figured I'd try to point you in the right direction lest the weekend make it take too long for someone more knowledgeable to get to this. (But see below for empirical results that seem to be what you want.) You wouldn't do this from .bashrc, but rather something that runs only when you log in (.bash_profile or .login), not for every shell that starts. Furthermore, you want to do it only when you're actually in an X11 environment. There are a lot of options available via Xkb: KDE Control Center -> Regional & Accessibility -> Keyboard Layout -> Kkb Options But I don't see disabling the left control key entirely among them. I have the general impression that the xmodmap program or the ~/.Xmodmap file can do virtually anything related to keyboard configuration, so you might want to look into them. The xmodmap program has a man page and there's a lot of stuff on the Web relating to X11 keyboard configuration. This one, while it relates to disabling a different key (Caps Lock), may hold useful hints for what you want: <http://www.cyberciti.biz/faq/linux-deactivate-caps-lock/> ... More ... OK, I looked at that page, ran these: % xmodmap --help usage: xmodmap [-options ...] [filename] where options include: -display host:dpy X server to use -verbose, -quiet turn logging on or off -n don't execute changes, just show like make -e expression execute string -pm print modifier map -pk print keymap table -pke print keymap table as expressions -pp print pointer map -grammar print out short help on allowable input - read standard input % xmodmap -e "remove control = Control_L" At this point, my left control key was in fact disabled. After this: % xmodmap -e "add control = Control_L" ... it was reinstated. You can use the presence of a DISPLAY environment variable to make sure xmodmap is only invoked when there's an X11 server running for you: if [ "$DISPLAY" ]; then xmodmap -display "$DISPLAY" -e "remove control = Control_L" fi
aTdHvAaNnKcSe
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jay C Vollmer wrote:
Hi Everybody.
I'm hoping that somebody out there can tell me how to unmap the left control key on my ThinkPad T61p running openSUSE 11.0.
Hi Jay, This can be done in your /etc/X11/xorg.conf file, and will affect all user accounts on the machine. A great front-end for modifying this file is sax2. Just run sax2 as root and select keyboard properties. Click on the "options" tab, scroll down a bit and you'll see "Control Key Position" with six options, one of them being "none". My preference is to swap the "Caps Lock" and "Control" keys. I've been pissed off at keyboards ever since IBM moved the control key away from its God-Appointed position of being directly left of the "A" key when the IBM-AT Pea Sea came out. UNIX folks use the control key quite a bit, and what better place to put it than right next to the A key? What Knuckle Head ever figured that the Caps Lock key is more important than the control key? It must have been a Windows Knuckle Head! Remapping control is my little way of fighting the Borg. Regards, Lew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Constantinos Maltezos
-
Jay C Vollmer
-
Lew Wolfgang
-
Randall R Schulz