Skip to content

Instantly share code, notes, and snippets.

@araa47
Last active August 10, 2020 18:52
Show Gist options
  • Save araa47/e3f3c5db80a267d2f83a6e5d8554bb34 to your computer and use it in GitHub Desktop.
Save araa47/e3f3c5db80a267d2f83a6e5d8554bb34 to your computer and use it in GitHub Desktop.

Volume Control for Mx Master 3s linux

  1. sudo apt install cmake libevdev-dev libudev-dev libconfig++-dev xbindkeys xautomation
  2. Install https://github.com/PixlOne/logiops
  3. Copy config file into /etc.logid.cfg
  4. Change name in file to "Mx Master 3"
  5. Make custom configs
  6. Create a file called .xbindkeysrc in /home/user/ dir
  7. Paste contents
# thumb wheel up => increase volume and unmute
"xte 'key XF86AudioLowerVolume'"
   b:6

# thumb wheel down => lower volume
"xte 'key XF86AudioRaiseVolume'"
   b:7

# backward button => previous song
"xte 'key XF86AudioNext'"
   b:8

# forward button => next song
"xte 'key XF86AudioPrev'"
   b:9

# scroll wheel press => pause
"xte 'key XF86AudioPlay'"
   b:2



  1. Run xbindkeys xbindkeys
  2. To stop and change config, kill using pkill xbindkeys && xbindkeys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment