LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] ssh and xmodmap

[ILUG] ssh and xmodmap

P at draigBrady.com P at draigBrady.com
Thu May 27 11:27:28 IST 2004


Brendan Halpin wrote:
> I'm running sawfish on Debian, without Gnome/KDE -- minimal and
> pleasant, but it means going back to "the old ways" for some
> settings. Like the left-handed mouse, which I setup with
>         xmodmap -e "pointer=3 2 1 4 5"
> in .bash_profile. 
> 
> However, when I ssh in from my laptop, I don't want this to
> execute. 
> 
> What would be the best way of disabling this? A test in the .bash*
> file ($DISPLAY == localhost?)? An ssh setting?

How about:

[ -z "$SSH_TTY" ] && xmodmap -e "pointer=3 2 1 4 5"

Other variables you could check are SSH_{CLIENT,CONNECTION}.
I found these using `set | grep -i ssh`

-- 
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---

X hotkeys

Ctrl+Alt+Backspace      kill X server
Shift+Ctrl+Numlock      Toggle numpad mouse move keys
Ctrl+Alt+KeypadPlus     next X mode (resolution usually)
Ctrl+Alt+KeypadMinus    previous X mode (resolution usually)

See http://www.pixelbeat.org/lkdb/
--



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell