Re: Disabling Super key?
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. Thanks, Girish. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disabling Super key?
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disabling Super key?
Just a sidenote: On Sat, 12 Jul 2008 16:07:32 +0100, Frank Shute [EMAIL PROTECTED] wrote: If you use xdm(1) or similar display manager, then you want to put that line in ~/.xsession An option to have all settings in one file (traditionally the ~/.xinirc file) is to create a ~/.xsession file with these three lines: #!/bin/csh source ~/.cshrc exec ~/.xinitrc Then, your ~/.xinitrc can contain any xmodmap call you want, for exmaple: xmodmap ~/.xmodmaprc So you don't run into trouble where to configure your X session. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disabling Super key?
After all that advice, one last piece remains - buy another keyboard;-) On 7/6/08, Girish Kulkarni [EMAIL PROTECTED] wrote: Is there any way I could disable the Windows key on my keyboard? I use FreeBSD 7.0-RELEASE on a Dell Inspiron 640m laptop. My Windows key (Super_L) has developed a problem for some unknown reason: it gets pressed and remains so without my touching it. I could diagnose this only using xev, which reported a constant Super_L KeyPress event. This means that I cannot enter text in for example Firefox or Emacs most of the time and this is terribly irritating. I could probably solve the problem by disabling the Super key. Thanks, Girish. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Sent from Google Mail for mobile | mobile.google.com Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Oh My God! They killed init! You Bastards! --from a /. post ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Disabling Super key?
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.) Girish. -- Girish Kulkarni - Allahabad, India - http://girish.50webs.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disabling Super key?
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Disabling Super key?
Is there any way I could disable the Windows key on my keyboard? I use FreeBSD 7.0-RELEASE on a Dell Inspiron 640m laptop. My Windows key (Super_L) has developed a problem for some unknown reason: it gets pressed and remains so without my touching it. I could diagnose this only using xev, which reported a constant Super_L KeyPress event. This means that I cannot enter text in for example Firefox or Emacs most of the time and this is terribly irritating. I could probably solve the problem by disabling the Super key. Thanks, Girish. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]