Linux users tend to be cautious when buying new hardware. The usual pattern is to consult forums and websites to find out if the hardware we are interested in is 100% supported by our OS. However, there are occasions when certain functionalities are only partially supported. In this article, I will explain how to configure the extra buttons of a Logitech Performance MX mouse using xbindkeys and xautomation.
Let’s configure our Logitech mouse by installing the necessary software:
Generate the initial configuration file:
Detect which button code the button to be configured has, for this we launch xev:
Configure the association of button 10 and 13 to the desired actions, close window (Shift + Mod4 + c) and maximize (Mod4 + m) window in awesome:
"xte 'keydown Shift_R' 'keydown Super_R' 'key c' 'keyup Shift_R' 'keyup Super_R'"
b:10
"xte 'keydown Super_R' 'key m' 'keyup Super_R'"
b:13
Add xbindkeys to the startup of our graphical session:
xbindkeys &
With this, the buttons that were useless now have an assigned functionality, just as the indicated actions have been assigned, any action could be executed ;)