Topic: [TIP] kill the caps lock!

I constantly hit the caps lock by accident on the EEE.  It drives me  nuts!  On Gnome based distros I usually put: xmodmap -e "remove lock = Caps_Lock" in .bashrc and that takes care of things.

I don't know if its #! or openbox.  But, for some reason the above fix gave me all caps, all the time!  I had to hold down shift so as not to SHOUT! wink

I searched and searched for a fix and I think I've found something that works to disable the caps lock at startup.  To save someone else the trouble of trying to find the fix, I thought I'd post things here. 

In your home folder put the line below in your .config/openbox/autostart.sh file:

setxkbmap -option ctrl:nocaps &

Re: [TIP] kill the caps lock!

NYbill wrote:

I constantly hit the caps lock by accident on the EEE.  It drives me  nuts!  On Gnome based distros I usually put: xmodmap -e "remove lock = Caps_Lock" in .bashrc and that takes care of things.

I don't know if its #! or openbox.  But, for some reason the above fix gave me all caps, all the time!  I had to hold down shift so as not to SHOUT! wink

I searched and searched for a fix and I think I've found something that works to disable the caps lock at startup.  To save someone else the trouble of trying to find the fix, I thought I'd post things here. 

In your home folder put the line below in your .config/openbox/autostart.sh file:

setxkbmap -option ctrl:nocaps &

it is sort of a completely useless key isnt it?
thanks

Diaspora    identi.ca     Jamendo
God never ends anything on a negative; God always ends on a positive. -- Edwin Louis Cole --

Re: [TIP] kill the caps lock!

In the future remember to post in the Tips, Tricks & Scripts section wink

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [TIP] kill the caps lock!

illumin8 wrote:

it is sort of a completely useless key isnt it?

This is what they said about ScrollLock, Pause and Print too. Apple even removed the del key, because they thought no one needs such a key. Others said that the arrow buttons are obsolete (what do we have a mouse for?) and the next button to vanish is AltGr (who the hell needs a pipe in windows?).

I'm so meta, even this acronym

Re: [TIP] kill the caps lock!

And where is the compose key?

Re: [TIP] kill the caps lock!

Compose?  alt-gr?  I keep hearing mention of these, but I've never seen them on a "standard" XT or PS/2 keyboard. hmm  Are they part of a European keyboard standard?

while ( ! ( succeed = try() ) );

Re: [TIP] kill the caps lock!

pvsage wrote:

Compose?  alt-gr?  I keep hearing mention of these, but I've never seen them on a "standard" XT or PS/2 keyboard. hmm  Are they part of a European keyboard standard?

AltGr yes, Compose not.

Re: [TIP] kill the caps lock!

pvsage wrote:

Are they part of a European keyboard standard?

Compose used to be... on some devices.

AltGr is the right Alt key. It's the modifier to get signs like |,@,€,~ and{[]}\. There are many other assigned keys in a Linux environment (ł¶ŧ←↓←→øþ...). AltGr is the standard modifier. It does the same as Ctrl+Alt.

I'm so meta, even this acronym

Re: [TIP] kill the caps lock!

Oh.  On a regular 105-key keyboard (at least on this side of the pond) most of those are either regular or shifted characters.  On netbooks and many other compact laptop keyboards, they're accessed by the same Fn key that accesses F1-F10 on the homerow and multimedia keys on the numbers row.

Maybe AltGr keyboards are descendants of the same Space Cadet [sic] keyboard that gave us the infamous 'Super' key?

while ( ! ( succeed = try() ) );

10

Re: [TIP] kill the caps lock!

http://en.wikipedia.org/wiki/AltGr_key
http://en.wikipedia.org/wiki/Compose_key

Re: [TIP] kill the caps lock!

anonymous wrote:

In the future remember to post in the Tips, Tricks & Scripts section wink

Good point, Anonymous.

I was corrected on Identi.ca (thanks @psquid) that the above command actually turns the caps lock into a CTRL.  But, I hadn't noticed till I was told.  So, the fix is working fine for me.  I no longer start shouting at people randomly.  wink

Re: [TIP] kill the caps lock!

Whoa, I wish I had a compose key... that's BRILLIANT.  It would be SO useful for linguistics.