Skip to content

Instantly share code, notes, and snippets.

@ygurin
Created March 7, 2022 11:04
Show Gist options
  • Save ygurin/e81af5807d64f237593c56d4a0621487 to your computer and use it in GitHub Desktop.
Save ygurin/e81af5807d64f237593c56d4a0621487 to your computer and use it in GitHub Desktop.
Logiops configuration file
// logiops - https://github.com/PixlOne/logiops
// see instructions https://developpaper.com/logiops-set-logitech-mouse-buttons-and-gestures-under-linux/
// see button mapping https://github.com/fin-ger/logitech-m720-config#button-cid-mapping
// see Linux key mapping https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h
devices: (
{
name: "M720 Triathlon Multi-Device Mouse";
buttons: (
{
cid: 0xd0;
action =
{
type: "Gestures";
gestures:(
{
direction:"Up";
mode="OnInterval";
interval=75;
action=
{
type:"Keypress";
keys:["KEY_LEFTMETA"];
}
},
{
direction:"Down";
mode="OnInterval";
interval=75;
action=
{
type:"Keypress";
keys:["KEY_LEFTMETA"];
}
},
{
direction:"Left";
mode="OnRelease";
action=
{
type:"Keypress";
keys:["KEY_LEFTCTRL","KEY_LEFTALT", "KEY_RIGHT"];
}
},
{
direction:"Right";
mode="OnRelease";
action=
{
type:"Keypress";
keys:["KEY_LEFTCTRL","KEY_LEFTALT", "KEY_LEFT"];
}
},
{
direction:"None";
mode="OnRelease";
action=
{
type:"Keypress";
keys:["KEY_LEFTMETA"];
}
}
)
};
}
);
hiresscroll:
{
hires: false;
invert: false;
target: false;
};
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment