Categories
Uncategorized

Logitech MX Mechanical linux

Logitech MX Mechanical works on Linux out of the box. Except these keys:

  • Dictation
  • Emoji
  • Screenshot
  • Microphone mute
  • Search

Thankfully, in Solaar, they are remappable, if you have the latest solaar version.

Making Screenshot key work

key/button Diversion: Screenshot: unlock, screenshot, diverted

Then click the Rule Editor and enter the following:

rule: condition: key: Screenshot, key press: Print

You can put the rule anywhere, just not within other rules. I put mine on top.

Making Microphone mute work

Keyboard shortcut to mute microphone, that works in any window seems the most useful to me.

key/button Diversion: Mute Microphone Search: unlock, screenshot, diverted

Then click the Rule Editor and enter the following:

Rule: condition: key: Mute Microphone, execute: your custom script.

My script has this content:

#! /bin/bash
amixer -D pulse sset Capture toggle

The point it to toggle the microphone. You can google the proper command depending on your configuration.

I had to use a bash script, I was not able to get the paths to work (no such file errors in solar -dd output)

Don’t forget to make the script executable.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.