Results 1 to 5 of 5

Thread: left+right=middle click also for mouse?

  1. #1
    Join Date
    Sep 2007
    Location
    Vienna
    Beans
    234

    left+right=middle click also for mouse?

    Hi there,

    When using the touchpad, you can click the left and the right button at the same time to make a middle click, but when using a mouse, this does not work. I would like this to work also with my mouse (since the middle button is way too hard and loud to click). Is there a way?
    As you can see from my history, i was once an enthusiastic ubuntu user. I would hereby like to assert that i no longer recommend using ubuntu to anyone. I recommend using one of the many distributions that do not include ad-/spyware by default.

  2. #2
    Join Date
    Sep 2006
    Beans
    1,610
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: left+right=middle click also for mouse?

    You need to add an option to your /etc/X11/xorg.conf:

    Code:
    Section "InputDevice"
        Identifier     "MyMouse"
        Driver         "mouse"
        Option         "CorePointer"
        Option         "Device" "/dev/input/mice"
        Option         "Protocol" "ExplorerPS/2"
        Option         "Emulate3Buttons" "true"
    EndSection
    Of course, you may not even have a /etc/X11/xorg.conf file.

    To create one, flip to the text console via Ctrl+Alt+F1 and log in.

    Enter the following commands:

    Code:
    sudo /etc/init.d/gdm stop
    sudo X -configure
    sudo cp xorg.conf.new /etc/X11/xorg.conf
    /etc/init.d/gdm start ; exit
    You're back to the graphic login. Log in.

    Open a terminal window and run
    Code:
    sudo gedit /etc/X11/xorg.conf
    Add that highlighted line to the mouse config. Save the file. Exit gedit. Then run this command in the terminal window:

    Code:
    sudo /etc/init.d/gdm restart
    You're back to the graphic login screen. Log in. Your mouse should now treat left+right as a middle-click.
    sı ɯǝ1qoɹd ɹnoʎ ʇɐɥʍ ǝǝs ı ʞuıɥʇ ı

  3. #3
    Join Date
    Sep 2007
    Location
    Vienna
    Beans
    234

    Re: left+right=middle click also for mouse?

    Quote Originally Posted by Giblet5 View Post
    You need to add an option to your /etc/X11/xorg.conf:

    Code:
    Section "InputDevice"
        Identifier     "MyMouse"
        Driver         "mouse"
        Option         "CorePointer"
        Option         "Device" "/dev/input/mice"
        Option         "Protocol" "ExplorerPS/2"
        Option         "Emulate3Buttons" "true"
    EndSection
    Of course, you may not even have a /etc/X11/xorg.conf file.

    To create one, flip to the text console via Ctrl+Alt+F1 and log in.

    Enter the following commands:

    Code:
    sudo /etc/init.d/gdm stop
    sudo X -configure
    sudo cp xorg.conf.new /etc/X11/xorg.conf
    /etc/init.d/gdm start ; exit
    You're back to the graphic login. Log in.

    Open a terminal window and run
    Code:
    sudo gedit /etc/X11/xorg.conf
    Add that highlighted line to the mouse config. Save the file. Exit gedit. Then run this command in the terminal window:

    Code:
    sudo /etc/init.d/gdm restart
    You're back to the graphic login screen. Log in. Your mouse should now treat left+right as a middle-click.


    that was quick. thank you!
    As you can see from my history, i was once an enthusiastic ubuntu user. I would hereby like to assert that i no longer recommend using ubuntu to anyone. I recommend using one of the many distributions that do not include ad-/spyware by default.

  4. #4
    Join Date
    Sep 2006
    Beans
    1,610
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: left+right=middle click also for mouse?

    Remember, only create a new xorg.conf if you don't already have one...

    If you DO have one, edit it via
    Code:
    sudo gedit /etc/X11/xorg.conf
    Add the first code block I posted above and restart the X server via
    Code:
    sudo /etc/init.d/gdm restart
    sı ɯǝ1qoɹd ɹnoʎ ʇɐɥʍ ǝǝs ı ʞuıɥʇ ı

  5. #5
    Join Date
    Sep 2007
    Location
    Vienna
    Beans
    234

    Re: left+right=middle click also for mouse?

    hey, sorry to bring this up again, when i started this thread i tried the solution in debian, but now i just noticed that the same does not work in ubuntu. any ideas?

    xorg.conf:
    Code:
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option "Emulate3Buttons" "true" #left+right=middle-click
    EndSection
    As you can see from my history, i was once an enthusiastic ubuntu user. I would hereby like to assert that i no longer recommend using ubuntu to anyone. I recommend using one of the many distributions that do not include ad-/spyware by default.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •