Dit heb ik ooit eens uitgezocht. Werk al jaren met twee muizen voor links en rechts handig.
Ik heb het volgende document ooit aangemaakt.
Twee muizen
1. Open a terminal (Ctrl+Alt+c or type "terminal" in the dash)
2. Enter: xinput (xinput is a tool for viewing and editing settings of input devices)
3. You will see a list of input devices and their IDs. Remember the id of the mouse whose settings you want to change. It should be a one- or low two-digit number. My second mouse has the ID 13.
4. Enter: xinput list-props 13 (replace 13 with the ID of your second mouse)
5. This will list several properties of your mouse. The one you're interested in is "Button Labels", which looks like this on my computer:
"Button Left" (135), "Button Middle" (136), "Button Right" (137), "Button Wheel Up" (138), "Button Wheel Down" (139), "Button Horiz Wheel Left" (140), "Button Horiz Wheel Right" (141), "Button Side" (256), "Button Extra" (257)
The important thing is the order of the labels. 1 = left button, 2 = middle button, 3 = right button.
6. Enter: xinput get-button-map 13 (this will print a numeric list of all buttons of input device 13 and should look like this: 1 2 3 4 5 ...)
7. Copy the numeric list.
8. Type: xinput set-button-map 13 , then paste the list. Now, assuming that button 1 is the left button and button 3 is the right button, switch 1 and 3 in the list so the command looks like this and press enter: xinput set-button-map 13 3 2 1 4 5 6 7 8 9
9. Changes are effective immediately, but only active for the current session.
10. To make the changes permanent, create a text file, and paste the command, so it looks like this:
xinput set-button-map 'Logitech USB Trackball' 3 2 1 4 5 6 7 8 9
xinput set-ptr-feedback 'Logitech USB Trackball' 3 5 1
I replaced the ID with the device name, but you can use the ID, too. I also changed the acceleration settings (2nd line). Save the file and make it executable (right click -> properties -> permissions -> tick "allow executing ...").
11. Add the file to your startup applications (Dash -> Startup Applications Preferences -> Add -> Browse...)
12. If you want to change other properties like acceleration, have a look at --set-prop on the xinput man page
1. Open een terminal (Ctrl + Alt + c of type "terminal" in de dash)
2. Voer in: xinput (xinput is een hulpmiddel voor het bekijken en bewerken instellingen van invoerapparaten)
3. U zult een lijst van de invoerapparaten en hun id's zien. Onthoud de id van de muis waarvan instellingen die u wilt wijzigen. Het moet een één- of lage getal van twee cijfers. Mijn tweede muis heeft de ID-13.
4. Voer: xinput lijst-props 13 (Vervang 13 met de ID van uw tweede muis)
5. Dit zal een lijst maken verschillende eigenschappen van de muis. De een u geïnteresseerd bent in "Knoplabels", die ziet er als dit op mijn computer is: "Knop Left" (135), "Middelste knop" (136), "Knop rechts" (137), "Knop wiel Up" (138), "Knop wiel Down" (139), "Knop Horiz wiel Left" (140), "Knop Horiz wiel Right" (141), "Knop Side" (256), "Knop Extra" (257) de belangrijkste is de volgorde van de etiketten. 1 = linker knop, 2 = middelste knop, 3 = knop rechts.
6. Enter: xinput get-button-map 13 (this will print a numeric list of all buttons of input device 13 and should look like this: 1 2 3 4 5 ...)
7. Copy the numeric list.
8. Type: xinput set-button-map 13 , then paste the list. Now, assuming that button 1 is the left button and button 3 is the right button, switch 1 and 3 in the list so the command looks like this and press enter: xinput set-button-map 13 3 2 1 4 5 6 7 8 9
9. Wijzigingen gelden onmiddellijk, maar alleen actief voor de huidige sessie.
10. Wilt u de wijzigingen behouden, maak een tekstbestand, en plak de opdrachtregel, zodat kijkt het als dit:
xinput set-knop-'Logitech USB Trackball' 3 2 1 4 5 6 7 8 9
xinput set-ptr-kaartfeedback 'Logitech USB Trackball' 3 5 1
Ik verving de ID met naam van het apparaat, maar u kunt de ID, te gebruiken. Ik veranderde ook de versnelling instellingen (2e lijn). Sla het bestand op en maak het uitvoerbaar (rechts klikken-> eigenschappen-> machtigingen-> teek "allow uitvoeren...").
11. Het bestand toevoegen aan uw opstarten van toepassingen (Dash-> opstarten toepassingen voorkeuren-> toevoegen-> bladeren...)
12. Als u wilt veranderen van andere eigenschappen zoals versnelling, neem een kijkje op--set-prop op de xinput man pagina (http://www.x.org/archive/X11R7.5/doc/man/man1/xinput.1.html)
Script
In /home/anton/bin een script gezet met de naam:
“Muis”
tekstscribt:
#!/bin/bash
sleep 5
xinput set-button-map 10 3 2 1
Dit script gezet in 'Systeem, Voorkeuren, Opstart-toepassingen.
De opdrachtregel wordt dan:
"muis"
Omdat dit bestand in de map “bin” staat kent de computer na het opnieuw opstarten tijdens het maken van de map het pad van dit bestand.
Je hoeft dan alleen de naam van het bestand te gebruiken bij het uitvoeren.
Als je in de Terminal in tikt “echo $PATH” kun je zien of het pad bekend is.
Het script werd in de eerst niet uitgevoerd tijdens het opstarten.
Aan het script “sleep 5” toegevoegd.
Het uitvoeren wacht even zodat de grafische omgeving is opgestart.
succes