From owner-freebsd-questions Fri Dec 14 12:39:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.cz (diana.mobil.cz [195.39.16.12]) by hub.freebsd.org (Postfix) with ESMTP id 74DEB37B417 for ; Fri, 14 Dec 2001 12:39:23 -0800 (PST) Received: from ester.mobil.cz (ester.mobil.cz [194.213.62.23]) by mobil.cz (8.11.6/8.11.0) with ESMTP id fBEKdLu27364 for ; Fri, 14 Dec 2001 21:39:21 +0100 Received: from roman.mobil.cz ([10.2.0.89]) by ester.mobil.cz (Lotus Domino Release 5.0.7) with ESMTP id 2001121421030702:7488 ; Fri, 14 Dec 2001 21:03:07 +0100 Received: (from roman@localhost) by roman.mobil.cz (8.11.6/8.11.6) id fBEKB6464609 for freebsd-questions@freebsd.org; Fri, 14 Dec 2001 21:11:06 +0100 (CET) (envelope-from neuhauser@mobil.cz) X-Authentication-Warning: roman.mobil.cz: roman set sender to neuhauser@mobil.cz using -f Date: Fri, 14 Dec 2001 21:11:05 +0100 From: Roman Neuhauser To: freebsd-questions Subject: Re: switching capslock <-> escape in terminal Message-ID: <20011214211105.Q27919@roman.mobil.cz> Mail-Followup-To: freebsd-questions References: <20011214160504.C27919@roman.mobil.cz> Mime-Version: 1.0 In-Reply-To: <20011214160504.C27919@roman.mobil.cz> User-Agent: Mutt/1.3.23i X-MIMETrack: Itemize by SMTP Server on ester/Mobil(Release 5.0.7 |March 21, 2001) at 12/14/2001 09:03:07 PM, Serialize by Router on ester/Mobil(Release 5.0.7 |March 21, 2001) at 12/14/2001 09:38:30 PM, Serialize complete at 12/14/2001 09:38:30 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Fri, 14 Dec 2001 16:05:04 +0100 > From: Roman Neuhauser > To: freebsd-questions > Subject: switching capslock <-> escape in terminal > > Hi there, > > since I spend about 50% percent of the time on a computer in vi[m], I > would really love to have the escape key closer to my fingers. Is it > possible to switch escape w/ capslock? I seem to remember having read > somewhere about switching ctrl <-> capslock, but cannot find it anymore. > stty(1) hasn't provide any hints either, nor did the vim manual (though > I might have missed the right keyword. > > I should note that I'm seeking to have the keys interchanged in terminal > (currently aterm), since I avoid using gvim. For the sake of the archives: if you put this in a file (say, ~/.xmodmaprc): ! swap CapsLock and Esc remove Lock = Caps_Lock keysym Caps_Lock = Escape keysym Escape = Caps_Lock add Lock = Caps_Lock you will have switched those keys as soon as you issue $ xmodmap ~/.xmodmaprc To switch the keys in the vty as well, edit your keymap file (default is /usr/share/syscons/us.iso.kbd; make a backup first!) and flip the scancodes for esc (001) and clock (058). Then issue $ kbdcontrol -l us.iso (if that is your keymap), and your all set. Kudos to Kevin Oberman and Tim Hammerquist for this info. -- FreeBSD 4.4-STABLE 8:30PM up 52 days, 7:13, 12 users, load averages: 0.05, 0.08, 0.08 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message