LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 11-05-2009, 12:46 AM   #1
glloq
LQ Newbie
 
Registered: Nov 2009
Distribution: Ubuntu 9.10
Posts: 1

Rep: Reputation: 0
Unhappy Caps Lock: How to remove the toggle effect?


I want the CapsLock to lock the letters in capital, and never to change them back to small letters.
To go from capitals letters down to small letter, I use the shift key.

In other word, I want my key board to behave like an old typewritter:
I don't want to have to look at my keyboard to know how capslock will bewave next time I use it.

I tryed all kind of set-up, but still could not remove the toggle effect of capslock...
 
Old 11-05-2009, 06:28 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
You can use xmodmap to do something like this:

Code:
xmodmap -e 'clear lock'
xmodmap -e 'keycode 66 = Shift_Lock'
xmodmap -e 'add lock = Shift_Lock'
This behaves more like a typewriter in two ways: a press of the shift key will unlock the caps lock; and using the shift while the lock is on will not invert back to lowercase.

The caps lock key will still toggle, so it doesn't quite meet your requirements, but at least pressing shift on its own will guarantee which state you are in.

Last edited by neonsignal; 11-05-2009 at 06:29 AM.
 
Old 11-05-2009, 06:30 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,229

Rep: Reputation: 286Reputation: 286Reputation: 286
On Ubuntu 9.10 go to: system > preferences > keyboard. Then click the Layout Options button. Under CapsLock key behavior, you will find many options to use for altering the behavior of the CapsLock key.

And welcome to the LQ forums!!
 
  


Reply

Tags
toggle, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Num lock OFF and Caps & Screen Lock ON at Linux startup. Reversing? peteyperson Linux - Newbie 2 02-28-2009 11:44 AM
all software installs hang scroll lock and caps lock lights flash jcorrnt Linux - Hardware 6 02-07-2009 12:44 PM
Hard lock plus Caps and Scroll Lock flashing (kernel panic?) TiredOfThis Linux - General 4 12-11-2007 07:35 PM
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 10:40 AM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 10:40 PM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration