You've loaded an old revision of the document! If you save it, you will create a new version with this data. Media Files====== Emulating Right-Click with a One-Button Mouse or Trackpad ====== {{ :misc:1-button-mice.jpg?400|Apple Macintosh Mouse M0100}}{{ :misc:1-button-trackpad.jpg?direct&400|1-button trackpad on an intel Polycarbonate Macbook}} Older Macintosh models usually shipped with a one-button mouse. In fact, in a way, Apple computers still do: only that the older Ctrl-Click combination for it has now changed to two-finger click or long tap on the swanky force-feedback glass-topped totally-not-a-touchscreen type trackpads. This causes a bit of a difficulty in most applications, as X11 / xenocara, by default, expect that BOTH right and middle mouse buttons would be available. It is relatively easy to emulate a right-click, or to bind Ctrl-Leftclick as "rightclick" in X11. The below workaround will not work in the console, ie. outside of an x11 environment. ===== Packages to install ===== You will need: * xdotool (this should be in base) * xbindkeys (available via pkg_add) ===== Configuration ===== Generate an ''.xbindkeysrc'' file in your $HOME folder using xbindkeys: <code> $ xbindkeys -d > ~/.xbindkeysrc </code> Then, using your $EDITOR, add these two lines to it: <code> "xdotool click 3" Control + b:1 </code> Finally you just want to make sure that ''xbindkey'' is started on login. Usually this is done by adding it to your ''$HOME/.xsession'' file: <code> exec /usr/local/bin/xbindkeys </code> If using other Display Managers like MATE, you may have to specify it from its own "Settings" type program. E.g. on MATE this is under "System > Control Center > Startup Applications". Just click "Add" and type "xbindkeys" as the command.SavePreviewCancel Edit summary Note: By editing this page you agree to license your content under the following license: CC Attribution-Share Alike 4.0 International