From owner-freebsd-questions@FreeBSD.ORG Sat Jul 12 15:07:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B08FB106564A for ; Sat, 12 Jul 2008 15:07:48 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 403928FC16 for ; Sat, 12 Jul 2008 15:07:47 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1KHghG-0002DT-6Z; Sat, 12 Jul 2008 16:07:38 +0100 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id m6CF7bv2006501; Sat, 12 Jul 2008 16:07:37 +0100 Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 4F7D3FCA4AE; Sat, 12 Jul 2008 16:07:32 +0100 (BST) Date: Sat, 12 Jul 2008 16:07:32 +0100 From: Frank Shute To: Girish Kulkarni Message-ID: <20080712150732.GA44779@melon.esperance-linux.co.uk> Mail-Followup-To: Girish Kulkarni , freebsd-questions@freebsd.org References: <8a2141c0807060227x2e28a4fgeea15ebd0dc02d32@mail.gmail.com> <692660060807060436u30deb4a3j4332426bccc8327d@mail.gmail.com> <8a2141c0807110419u4e07d2bct190056c627ec047d@mail.gmail.com> <8a2141c0807110438m219018afoba91c986e2c9be73@mail.gmail.com> <20080711123230.GA39237@melon.esperance-linux.co.uk> <8a2141c0807120617v50fa50d3xf7602f49bbf54ff9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8a2141c0807120617v50fa50d3xf7602f49bbf54ff9@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE-p2 i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (zetnet.co.uk [194.247.46.1]); Sat, 12 Jul 2008 16:07:38 +0100 (BST) Cc: freebsd-questions@freebsd.org Subject: Re: Disabling Super key? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2008 15:07:48 -0000 On Sat, Jul 12, 2008 at 06:47:57PM +0530, Girish Kulkarni wrote: > > On Fri, Jul 11, 2008 at 6:02 PM, Frank Shute wrote: > > > > On Fri, Jul 11, 2008 at 05:08 PM, Girish Kulkarni wrote: > >> Any idea how I could make the effect of xmodmap > >> permanent? (Adding relevant lines to ~/.xsession doesn't seem > >> to help.) > > > > Make a ~/.xmodmaprc with your setting(s) in it and then call it > > from ~/.xsession or ~/.xinitrc (depends on how you start > > X). E.g you want a line like: > > Thanks for your reply. This doesn't seem to be helping though. I use > ~/.xsession to start X so I put the following two lines in it: > > xmodmap -e 'clear mod4' > xmodmap ~/.xmodmaprc > > where ~/.xmodmaprc contains relevant instructions for disabling the > Super key. I found that the Super key was not disabled even after > this. I also tried including these two lines in ~/.xinitrc. > First, you should check what keycode the key you want to disable produces. You can check this by using X11/xev and pressing the key. On my English PC keyboard, the left Windows key produces keycode 115. I can disable it by putting the following line in ~/.xinitrc since I use startx(1): xmodmap -e "keycode 115=" If you use xdm(1) or similar display manager, then you want to put that line in ~/.xsession Don't worry about having an xmodmaprc. You'll obviously need to restart X for the change to take effect. Or just run it from a prompt for it to have an immediate effect. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html