[SOLVED] Left Handed Mouse Is there any way to use a mouse with the left hand?
#1
Posted 09 November 2011 - 09:39 PM
I am a newbie to Bodhi and Enlightenment. The setting for the mouse hand in 1.2.1 is broken, and does not do anything. Is there any way to configure Enlightenment manually to use the mouse with the left hand?
Best wishes,
Ted
#2
Posted 09 November 2011 - 09:59 PM
#3
Posted 09 November 2011 - 10:02 PM
KlingKlangMan, on 09 November 2011 - 09:59 PM, said:
Dear KlingKlangMan,
I think that I may be forced to do what your doing, but it's going to take a long time to reverse the habits of twenty years!
Best wishes,
Ted
#4
Posted 09 November 2011 - 10:26 PM
#5
Posted 09 November 2011 - 10:36 PM
Have you tried going to Settings -> Settings Panel -> input -> mouse, and changing the hand (to left handed)
Cheers
Hippytaff
#6
Posted 09 November 2011 - 11:16 PM
hippytaff, on 09 November 2011 - 10:36 PM, said:
Have you tried going to Settings -> Settings Panel -> input -> mouse, and changing the hand (to left handed)
Cheers
Hippytaff
Dear Hippytaff,
many thanks for your reply. Yes, I have tried that, and it does nothing. Have you got it to work?
Best wishes,
Ted
#8
Posted 09 November 2011 - 11:55 PM
#9
Posted 10 November 2011 - 07:00 AM
I found a way using script.
open leafpad, paste following lines
#!/bin/bash xmodmap -e "pointer = 3 2 1";
save it in your home folder as left_handed_mouse.sh
now open terminal, run followind command
chmod +x ./left_handed_mouse.sh
test it by running in terminal
./left_handed_mouse.sh
if it swap your mouse, you're good
if you want it, you can add this script at startup.
If you want to return it to right handed, change
#!/bin/bash xmodmap -e "pointer = 3 2 1";
to
#!/bin/bash xmodmap -e "pointer = 1 2 3";
good luck
#10
Posted 10 November 2011 - 08:34 AM
#11
Posted 10 November 2011 - 08:52 AM
That script is something I found when googling. I thought I would need it later.
If I'm running Ubuntu, I would copy this script to /etc/init.d
by running
sudo cp ./left_handed_mouse.sh /etc/init.d
and it will be called on startup
I wonder if this method works with Bodhi,
since when someone asked about startup, no one answer it this way
#13
Posted 10 November 2011 - 09:45 AM
hippytaff, on 10 November 2011 - 09:38 AM, said:
This is how I would do it. You can either get exec in the desktop file to point at your sctipt, or just add the commands to the exec: bit.
Cheers
Hippytaff
Yes is possible, but why you tell me?
#16
Posted 10 November 2011 - 10:57 AM
Do startup application entry run before we login?
because if it don't and we don't use auto-login,
that means mouse will be in right-hand-mode at login screen right?
#17
Posted 10 November 2011 - 11:02 AM
If you use Settings -> Applications -> Startup applications to load it, of course yes: in fact E17 manage this apps, so if you don't load it(and you don't load it until you make a login), app doesn't start.
Maybe using init.d or similar stuff you could have an application launched before the login, but i don't know.
#18
Posted 17 November 2011 - 06:53 PM
many thanks for your helpful suggestions. I have been a bit tied-up for the last few days, and I have only just got round to posting.
The script that Hendra suggested works fine, and after execution, the mouse is now left handed.
It took me quite a while to find out how to add the script to the startup applications, but using the information provided by hippytaff at:-
"http://wiki.bodhilinux.com/doku.php?id=startup_commands&s[]=startup&s[]=script"
I created the file "~/left_handed_mouse.desktop" containing:-
"[Desktop Entry]
Name=left_handed_mouse
Comment=Sets the mouse as left handed
Exec=/home/ted/left_handed_mouse.sh
Icon=false
NoDisplay=false
Terminal=false
Type=Application
Categories=
StartupNotify=true"
copied it to /usr/share/applications
sudo cp left_handed_mouse.desktop /usr/share/applications
and changed the permissions
sudo chmod +x /usr/share/applications/left_handed_mouse.desktop
This works very well.
Thank you all for your kind help.
Ted

Help














