I like using a two-finger tap as mouse button 2. That way I can close tabs in chrome, open menus, etc, and use the three-finger tap as button 3, which I rarely use. I found a neat tip here on how to fix the mouse buttons. The yurivkhan patch worked great for 10.04, but in 10.10, every time I restart or awaken my computer from suspend, my mouse buttons have reverted to their default:
ben@ben-UL30A:~$ synclient -lThis was a big head-scratcher, and all the advise out there on the interweb was pretty useless. Changing the settings, of course, is very simple:
ben@ben-UL30A:~$ ...
TapButton2=3
TapButton3=2
ben@ben-UL30A:~$ synclient TapButton2=2 TapButton3=3However, the settings would revert after a suspend or reboot. Even with yurivkhan patch. Even with adjustments to mouse buttons in the patched gconf. And it's annoying to switch the settings back every time you open your computer. I want it streamlined, and automated. This is a machine, after all. Do it for me!
ben@ben-UL30A:~$
The fix is head-slappingly simple. Make a bash script, I named it touchpad.sh, with the following contents:
#!bin/bash
#make the script sleep for a few seconds so that the touchpad driver will have time to load
sleep 10
synclient TapButton2=2 TapButton3=3
exit
Now your button settings should do as that script told them to do, and be in the appropriate way after reboot AND wake from suspend.
Note: You can add whatever synclient settings you want to that script, of which there are many.
Note: You can add whatever synclient settings you want to that script, of which there are many.
Note: Make sure you set the script to be executable, and add it to your startup applications. You could even be so bold as to add it to your /usr/bin:
ben@ben-UL30A:~$ sudo cp touchpad.sh /usr/bin/Now, you can just add touchpad.sh to your startup applications. I like doing it this way better. It just keeps things cleaner. I don't know, call me crazy.
ben@ben-UL30A:~$
Tidak ada komentar:
Posting Komentar
Setelah membaca artikel di atas.
Apa komentar anda ??