Xubuntu – Logitech MX Master 2S keymap

Custom keymap for Logitech MX Master 2S mouse on Xubuntu 16.04.

First, install Solaar to see the battery level on the taskbar

sudo apt-get install solaar

 

To remap the keys, install

sudo aptitude install xbindkeys xautomation

Then, launch xev to get the keyboard or mouse event to bind

xev

Create the configuration file for xbindkeys

nano ~/.xbindkeysrc

Here is an exemple of this file that map the Back and Forward buttons to BackSpace and Return respectively

# Back button => BackSpace
"xte 'keydown BackSpace'"
 b:8

"xte 'keyup BackSpace'"
 b:8 + Release

# Forward button => Enter
"xte 'keydown Return'"
 b:9

"xte 'keyup Return'"
 b:9 + Release

To test your binding

xbindkeys -v

To start xbindkeys

xbindkeys

it should autostart automatically

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s