Skip to content

Instantly share code, notes, and snippets.

@epassaro
Created February 27, 2021 20:53
Show Gist options
  • Select an option

  • Save epassaro/262d435f6449d6b2fff6925e0fad4cd1 to your computer and use it in GitHub Desktop.

Select an option

Save epassaro/262d435f6449d6b2fff6925e0fad4cd1 to your computer and use it in GitHub Desktop.
logiops configuration file for Logitech M585/M590.
devices: (
{
name: "M585/M590 Multi-Device Mouse";
buttons: (
{
cid: 0x56;
action =
{
type: "Keypress";
keys: ["KEY_VOLUMEUP"];
};
},
{
cid: 0x53;
action =
{
type: "Keypress";
keys: ["KEY_VOLUMEDOWN"];
};
},
{
cid: 0x5b;
action =
{
type: "Keypress";
keys: ["KEY_PLAYPAUSE"];
};
},
{
cid: 0x5d;
action =
{
type: "Keypress";
keys: ["KEY_NEXTSONG"];
};
},
);
}
);
@epassaro
Copy link
Copy Markdown
Author

logid.cfg

logiops configuration file for Logitech M585/M590.

  • Remaps forward button to KEY_VOLUMEUP.
  • Remaps back button to KEY_VOLUMEDOWN.
  • Remaps left scroll to KEY_PLAYPAUSE.
  • Remaps right scroll to KEY_NEXTSONG.

See CIDs and input event codes for more information.

Installation

Dependencies

openSUSE Tumbleweed:

$ sudo zypper in cmake libevdev-devel systemd-devel libconfig-devel gcc-c++ libopenblas_pthreads-devel libudev-devel libconfig++-devel

Build

$ mkdir build
$ cd build
$ cmake ..
$ make

Install

$ sudo make install
$ cp logid.cfg /etc/
$ sudo systemctl enable logid

@gjhuerte
Copy link
Copy Markdown

gjhuerte commented Sep 3, 2021

Hey! Thank you very much for this. Mine now works using your configuration just need to remove comma on line 36 🥂 🥂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment