add config and setup doc for logi mouse

This commit is contained in:
SquidSpirit 2025-08-29 12:52:27 +08:00
parent 45d88af3c6
commit 60874b0c8e
2 changed files with 50 additions and 0 deletions

29
logid/README.md Normal file
View File

@ -0,0 +1,29 @@
# Install Logi Driver
1. Install the dependencies.
```bash
sudo pacman -S base-devel cmake libevdev libconfig systemd-libs glib2
```
2. Clone the driver, build, and install.
```bash
git clone https://github.com/PixlOne/logiops.git
mkdir logiops/build
cd logiops/build
cmake ..
make
sudo make install
```
3. Modify the config file at `/etc/logid.cfg`.
> Example: https://github.com/PixlOne/logiops/blob/main/logid.example.cfg
4. Enable the service.
```bash
sudo systemctl enable --now logid
```

21
logid/logid.cfg Normal file
View File

@ -0,0 +1,21 @@
devices: (
{
name: "Signature M650";
buttons: (
{
cid: 0x53;
action: {
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"];
};
},
{
cid: 0x56;
action: {
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_LEFT"];
};
}
);
}
);