Date: Sat, 12 Jul 2008 16:07:32 +0100 From: Frank Shute <frank@shute.org.uk> To: Girish Kulkarni <girish@hri.res.in> Cc: freebsd-questions@freebsd.org Subject: Re: Disabling Super key? Message-ID: <20080712150732.GA44779@melon.esperance-linux.co.uk> In-Reply-To: <8a2141c0807120617v50fa50d3xf7602f49bbf54ff9@mail.gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080712150732.GA44779>