Configure Logitech MX Anywhere 2s Mouse on Kubuntu

  • Home
  • -
  • Blog
  • -
  • Post
  • -
  • LogitechMxAnywhere2sKubuntu
2021 . Dec . 12 / LinuxNotes++ to self

The mouse

It is easy to configure the MX Anywhere on Windows, you just need to install the Logitech software and you're done, but for linux it's a little bit tricky.

A quick Google search led me to the easiest solution, that might not just work only for this particular mouse, but for others too.

Even though it is a very straightforward solution, there are some details to be aware of.

The details

  • Connecting the mouse through bluetooth didn't work for me, so using its wireless adapter is a must.
  • The Battery status shows 55% most of the time, even with a full charged battery. It still displays 10% and 5% when needed.

Quick setup

  1. Install xbindkeys and xdotool: sudo apt install xbindkeys xdotool
  2. Find out the mouse key associations with: xev | grep button
  3. Create the .xbindkeysrc file: xbindkeys --defaults > ~/.xbindkeysrc
  4. For Copy and Paste lateral buttons:
.xbindkeysrc
"xdotool key --clearmodifiers ctrl+c"
  b:8

"xdotool key --clearmodifiers ctrl+v"
  b:9
  1. Then, execute: xbindkeys

Solaar

Optionally, you can install Solaar: apt install solaar. But to be fair, it does not do much for this mouse.

Comments
If you have any doubt or question, or know how to improve this post, please feel free to write a comment.