Author Topic: e17 How to change from right to left-handed mouse?  (Read 1563 times)

Offline DLWood

  • Sr. Member
  • ****
  • Posts: 309
e17 How to change from right to left-handed mouse?
« on: April 10, 2012, 09:34:32 AM »
I've searched this forum and the Internet, and found no solution in changing the mouse from right-handed to left-handed in Enlightenment.  There is a place for it in Settings>Settings Panel>Input>Mouse Settings....but it doesn't seem to work.  When I click the radio button to change from right to left, nothing changes.  Is there a trick or something that I'm missing?

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: e17 How to change from right to left-handed mouse?
« Reply #1 on: April 10, 2012, 04:26:29 PM »
You've definitely found an e17 bug. A report was filed on it over a year ago. I've added to it.

There should be a way to change the button mappings in xorg.conf. Unfortunately, there is no mouse section in there any more, and I can't seem to get it right.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline DLWood

  • Sr. Member
  • ****
  • Posts: 309
Re: e17 How to change from right to left-handed mouse?
« Reply #2 on: April 10, 2012, 05:15:24 PM »
I did a bunch more digging and found a workaround on the Bodhi Linux forum.  Here's the pertinent info:

Quote
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";

I saved the bash file in my home folder for my e17 user.  I then made a desktop entry (or whatever you call the desktop app icons) and pointed to the file I just saved in the "Application" box.  Double-clicking on the desktop icon swaps the mouse, but it must be done every time you restart or log in.  You could make one for right and one for left and switch at will.

I then made it autostart by going to Settings>Settings Panel>Apps>New Application, and made a new application for that desktop icon; then added it to Startup Applications.

There is probably an easier way to do it, but this does work for me.  Thanks to the Bodhi forum folks!!



Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: e17 How to change from right to left-handed mouse?
« Reply #3 on: April 11, 2012, 02:52:57 AM »
Dunno if you guys already looked ... how about /etc/X11/xorg.conf.d/ ?
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline DLWood

  • Sr. Member
  • ****
  • Posts: 309
Re: e17 How to change from right to left-handed mouse?
« Reply #4 on: April 11, 2012, 07:36:42 AM »
Dunno if you guys already looked ... how about /etc/X11/xorg.conf.d/ ?

On the desktop computer that I'm currently working on (to give away), I installed PCLOS KDE 2012.2.  I have a KDE user and an e17 user.  So I don't want to globally change the mouse....the KDE mouse switch works perfectly.

I did look at the files in the  xorg.conf.d  folder, but saw nothing that I recognized to change w/o doing more research and adding lines of code.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: e17 How to change from right to left-handed mouse?
« Reply #5 on: April 11, 2012, 07:48:19 PM »
Dunno if you guys already looked ... how about /etc/X11/xorg.conf.d/ ?

I did, but on my system, there doesn't seem to be any applicable files for editing and I didn't want to create one.

Code: [Select]
darrel@AMD64:  5 items 28Kb -> ls -l /etc/X11/xorg.conf.d/
total 20
-rw-r--r-- 1 root root 1099 Sep 22  2011 10-evdev.conf
-rw-r--r-- 1 root root  979 Jul  9  2011 50-fpit.conf
-rw-r--r-- 1 root root  172 Jul  9  2011 50-synaptics.conf
-rw-r--r-- 1 root root  115 Jul  9  2011 50-vmmouse.conf
-rw-r--r-- 1 root root  899 Jul  9  2011 50-wacom.conf

Wed Apr 11 08:43:14 PM CDT 2012
/etc/X11/xorg.conf.d
darrel@AMD64:  5 items 28Kb ->

Anyway, I got this email notification today:

Quote

#673: Mouse settings swithch for left<->right main mouse buton doesn't work
---------------------------------------+-----------------------------------
 Reporter:  wawrzek                    |       Owner:  raster
     Type:  Bug                        |      Status:  closed
 Priority:  Major                      |   Milestone:  Enlightenment 0.17.1
Component:  enlightenment              |  Resolution:  Fixed
 Keywords:  input, mouse, left handed  |  Blocked By:
 Blocking:                             |
---------------------------------------+-----------------------------------
Changes (by raster):
 
 * status:  new => closed
 * resolution:   => Fixed
 
 
Comment:
 
 this has been fixed in svn for a short while now (2 weeks or so). packages
 may take days, weeks , months or years to catch up. who knows.
 
--
Ticket URL: <http://trac.enlightenment.org/e/ticket/673#comment:2>
Enlightenment <http://www.enlightenment.org/>
Enlightenment Project


Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline jb99

  • Jr. Member
  • **
  • Posts: 42
Re: e17 How to change from right to left-handed mouse?
« Reply #6 on: April 21, 2012, 01:08:22 PM »
I have the latest  e17 svn installed on pclinuxos on my laptop and I can confirm the right/left mouse menu works ok.