Disabling Super key?

Frank Shute frank at shute.org.uk
Fri Jul 11 12:32:42 UTC 2008


On Fri, Jul 11, 2008 at 05:08:18PM +0530, Girish Kulkarni wrote:
>
> On Sun, Jul 6, 2008 at 5:06 PM, Sebastian Tymków wrote:
> > Did you try kbdcontrol ?
> 
> Thanks. I could do that using kbdcontrol(1) although this disables
> the Windows key only in the console and not in X, where xmodmap(1)
> does the job instead. I could make the effect of kbdcontrol
> permanent by adding a line to ~/.bash_profile. Any idea how I could
> make the effect 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:

xmodmap -display :0.0 .xmodmaprc

in there.

For the kbdcontrol stuff, I put it in /etc/rc.local

> 
> Girish.
> 

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 



More information about the freebsd-questions mailing list