Skip to content

A simple python script for auto configuring extra mouse button on linux.

Notifications You must be signed in to change notification settings

paulhong01/Mouse-autoconfiguration-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Mouse-autoconfiguration-linux

A simple python script for auto configuring extra mouse button on linux.

This python script utilizes xbindkeys, xautomation, and xdotool to configure mouse's extra button on linux. The current version for button setting is for Logitech M705. You can find the button numbers for the buttons on your mouse by the following steps.

Find mouse button numbers

Step 1

Install xev

sudo apt-get install xev

Step 2

Run xev. You will see a small white window. Move the mouse to the block and press the button which you want to check. You will see the results like the following:

ButtonRelease event, serial 37, synthetic NO, window 0x4200001,
    root 0x100, subw 0x4200002, time 25443907, (24,48), root:(1407,100),
    state 0x100, button 1, same_screen YES

The mouse button is 1.

Mouse Setting

In Mouse_Setting, it corresponds the mouse buttons to the desired command.

Mouse_Configuration

Mouse_Configuration automatically configures the mouse to the desired actions. You can run Mouse_Configuration to set the initial setting and modify Mouse_Setting to your desired action.

About

A simple python script for auto configuring extra mouse button on linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages