特殊:Badtitle/NS100:ManyButtonsMouseHowto:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/ManyButtonsMouseHowto}} | {{From|https://help.ubuntu.com/community/ManyButtonsMouseHowto}} | ||
{{Languages| | {{Languages|UbuntuHelp:ManyButtonsMouseHowto}} | ||
第70行: | 第70行: | ||
<pre><nowiki> | <pre><nowiki> | ||
"^Firefox-bin$" | "^Firefox-bin$" | ||
None, Left, Control_L|Page_Up | None, Left, Control_L|Page_Up | ||
None, Right, Control_L|Page_Down | None, Right, Control_L|Page_Down | ||
第113行: | 第112行: | ||
CategoryDocumentation CategoryCleanup | [[category:CategoryDocumentation]] [[category:CategoryCleanup]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年5月14日 (一) 11:19的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ManyButtonsMouseHowto }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/af | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Afrikaans| [[::ManyButtonsMouseHowto/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ar | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|العربية| [[::ManyButtonsMouseHowto/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/az | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|azərbaycanca| [[::ManyButtonsMouseHowto/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/bcc | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|جهلسری بلوچی| [[::ManyButtonsMouseHowto/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/bg | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|български| [[::ManyButtonsMouseHowto/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/br | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|brezhoneg| [[::ManyButtonsMouseHowto/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ca | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|català| [[::ManyButtonsMouseHowto/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/cs | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|čeština| [[::ManyButtonsMouseHowto/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/de | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Deutsch| [[::ManyButtonsMouseHowto/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/el | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Ελληνικά| [[::ManyButtonsMouseHowto/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/es | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|español| [[::ManyButtonsMouseHowto/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/fa | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|فارسی| [[::ManyButtonsMouseHowto/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/fi | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|suomi| [[::ManyButtonsMouseHowto/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/fr | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|français| [[::ManyButtonsMouseHowto/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/gu | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|ગુજરાતી| [[::ManyButtonsMouseHowto/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/he | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|עברית| [[::ManyButtonsMouseHowto/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/hu | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|magyar| [[::ManyButtonsMouseHowto/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/id | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Bahasa Indonesia| [[::ManyButtonsMouseHowto/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/it | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|italiano| [[::ManyButtonsMouseHowto/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ja | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|日本語| [[::ManyButtonsMouseHowto/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ko | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|한국어| [[::ManyButtonsMouseHowto/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ksh | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Ripoarisch| [[::ManyButtonsMouseHowto/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/mr | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|मराठी| [[::ManyButtonsMouseHowto/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ms | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Bahasa Melayu| [[::ManyButtonsMouseHowto/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/nl | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Nederlands| [[::ManyButtonsMouseHowto/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/no | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|norsk| [[::ManyButtonsMouseHowto/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/oc | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|occitan| [[::ManyButtonsMouseHowto/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/pl | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|polski| [[::ManyButtonsMouseHowto/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/pt | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|português| [[::ManyButtonsMouseHowto/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ro | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|română| [[::ManyButtonsMouseHowto/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/ru | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|русский| [[::ManyButtonsMouseHowto/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/si | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|සිංහල| [[::ManyButtonsMouseHowto/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/sq | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|shqip| [[::ManyButtonsMouseHowto/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/sr | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|српски / srpski| [[::ManyButtonsMouseHowto/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/sv | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|svenska| [[::ManyButtonsMouseHowto/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/th | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|ไทย| [[::ManyButtonsMouseHowto/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/tr | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Türkçe| [[::ManyButtonsMouseHowto/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/vi | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|Tiếng Việt| [[::ManyButtonsMouseHowto/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/yue | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|粵語| [[::ManyButtonsMouseHowto/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/zh | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|中文| [[::ManyButtonsMouseHowto/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/zh-hans | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|中文(简体)| [[::ManyButtonsMouseHowto/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ManyButtonsMouseHowto | UbuntuHelp:ManyButtonsMouseHowto | {{#if: | :}}ManyButtonsMouseHowto}}/zh-hant | • {{#if: UbuntuHelp:ManyButtonsMouseHowto|中文(繁體)| [[::ManyButtonsMouseHowto/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ManyButtonsMouseHowto|:ManyButtonsMouseHowto|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ManyButtonsMouseHowto/zh | | {{#ifexist: ManyButtonsMouseHowto/zh | | {{#ifeq: {{#titleparts:ManyButtonsMouseHowto|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ManyButtonsMouseHowto|1|-1|}} | zh | | }}
Many Buttons Mouse Howto
This page gives useful informations to configure one of those mice with tons of buttons, wheels and other controls.
If you have installed the GNOME environment you ALREADY have the software needed to get the "4th" and "5th" mice buttons working (forward/backward on most mice)!
In /etc/X11/xorg.conf or /etc/X11/XF86Config-4 change Option "Buttons" "5"
to Option "Buttons" "7"
(see "The X11 configuration file" section for an example). You may also have to change the ZAxisMapping option from "4 5" to "6 7" but you'll have to experiment to see what your set-up needs.
How to do it
The key to being able to program your mouse buttons is to install imwheel. Download and install it using Synaptic or apt-get.
Then, you will modify your /etc/X11/xorg.conf (or XF86Config-4) file to register that your mouse is more than the "standard" five (5) button mouse.
Note: A "standard" 2 (left, right click) + 1 (middle click/scroll) button mouse is actually a five button mouse from X11's perspective! The scroll wheel's up and down action counts as mouse buttons 4 and 5. This means that any mouse with one scroll wheel has two more buttons than you'd expect.
Then, you need to modify your /etc/X11/imwheel/imwheelrc or ~/.imwheelrc files to tell imwheel what to do with a mouse click when it happens in a particular application (see the wikis referenced below for details on what you can do with your imwheelrc or .imwheelrc file).
Note: If you modify ~/.imwheelrc this means that you can customize the imwheel behavior for each user on the system.
Then, if desired, you have to tell X11 to run imwheel whenever X11 is started (modifying /etc/X11/Xsession.d/60imwheel_start-imwheel _and_ changing IMWHEEL_START=0 to =1 in /etc/X11/imwheel/startup.conf). Alternately, you can start imwheel manually.
PS See IntellimouseMousemanBackForwardButtons for an outstanding explanation of how to set up imwheel properly.
The X11 configuration file
This is what the relevant portion of my xorg.conf file looks like:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "false" Option "Buttons" "7" Option "ZAxisMapping" "6 7" EndSection
Note: Using xmodmap to remap mouse buttons can result in the error "xmodmap: commandline:1: bad number of buttons, must have 11 instead of 7". If you want to remap the buttons on your mouse, make the following (or similar) modification to your xorg.conf file:
Option "Buttons" "5" Option "ZAxisMapping" "4 5" Option "ButtonMapping" "1 2 3 6 7"
Another Example - Logitech 510
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "Buttons" "7" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "ZAxisMapping" "4 5" Option "ButtonMapping" "1 2 3 6 7" Option "Resolution" "800" EndSection
The .imwheelrc configuration file
And my .imwheelrc looks like:
"^Firefox-bin$" None, Left, Control_L|Page_Up None, Right, Control_L|Page_Down
(obviously you'd add more applications to this file if you'd like to customize the mouse button behavior in those applications)
Displaying Mapped Buttons - Troubleshooting
Before editing any files, (xorg.conf or .imwheelrc) you should check your mouse button mappings.
Run "imwheel -c" for graphical GUI, then press the GrabWheelAction, then press the mouse button to view its default mapping.
If for example, your side mouse buttons map to left and right, you would use the following .imwheelrc for firefox.
Example, Will substitute Left mouse map to Alt_L (left alt) and Left key. (Default Firefox back key combination)
and Right to Alt_Left+Right (Default Firefox forward key combination)
"^Firefox-bin$" None,Left,Alt_L|Left None,Right,Alt_L|Right
See imwheel for advanced mouse button mappings.
Useful links
- http://www.google.com/search?q=configure+x11+mouse+buttons&btnG=Search&hl=en&lr=
- IntellimouseMousemanBackForwardButtons
- http://subwiki.honeypot.net/cgi-bin/view/Computing/ExtraMouseButtons
- http://forums.macosxhints.com/showpost.php?p=46998&postcount=57
- http://www.lirc.org/html/configure.html
- http://www.linuxnetmag.com/en/issue5/m5mouse1.html
- http://fedoraforum.org/forum/showthread.php?t=27470
- http://fedoraforum.org/forum/showthread.php?s=5745dd389c241334b0dc76f0f7b86a16&t=25659
- http://docs.hp.com/en/B2355-90122/ch06s04.html
- http://www.linuxforum.com/linux_tutorials/70/1.php