Linux 下配置 Master2s 鼠标

Catalogue

参考 https://michael-verschoof.medium.com/setting-up-mx-master-mouse-on-linux-aae0e2ce3962

gio 安装是 sudo apt install libglib2.0-dev

配置项参考 https://github.com/PixlOne/logiops/wiki/Configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
devices: (
{
name: "Wireless Mouse MX Master 2S";
hiresscroll:
{
hires: true;
invert: false;
target: false;
};
dpi: 1250;
buttons: (
{
cid: 0x53;
action =
{
type: "Keypress";
keys: ["KEY_PREVIOUSSONG"];
};
},
{
cid: 0x56;
action =
{
type: "Keypress";
keys: ["KEY_NEXTSONG"];
};
}
);
});

通过 sudo logid -v 可以 Debug 当前可以配置的按键 CID