107 lines
3.2 KiB
INI
107 lines
3.2 KiB
INI
// Configuration Documentation: https://github.com/PixlOne/logiops/wiki/Configuration
|
|
// Keycodes: https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h
|
|
devices: ({
|
|
name: "Wireless Mouse MX Master 2S";
|
|
|
|
// A lower threshold number makes the wheel switch to free-spin mode
|
|
// quicker when scrolling fast.
|
|
smartshift: {
|
|
on: true;
|
|
threshold: 20;
|
|
};
|
|
|
|
hiresscroll: {
|
|
hires: true;
|
|
invert: false;
|
|
target: false;
|
|
};
|
|
|
|
// Higher numbers make the mouse more sensitive (cursor moves faster),
|
|
dpi: 1500;
|
|
|
|
thumbwheel:
|
|
{
|
|
divert: true;
|
|
invert: false;
|
|
|
|
left: {
|
|
mode: "OnInterval";
|
|
interval: 1;
|
|
action: {
|
|
type = "Keypress";
|
|
keys = ["KEY_LEFTSHIFT", "KEY_SCROLLDOWN"];
|
|
};
|
|
};
|
|
right: {
|
|
mode: "OnInterval";
|
|
interval: 1;
|
|
action: {
|
|
type = "Keypress";
|
|
keys = ["KEY_LEFTSHIFT", "KEY_SCROLLUP"];
|
|
};
|
|
};
|
|
};
|
|
|
|
buttons: (
|
|
{
|
|
cid: 0xc3;
|
|
action =
|
|
{
|
|
type: "Gestures";
|
|
gestures: (
|
|
{
|
|
direction: "Up";
|
|
mode: "OnRelease";
|
|
// Fullscreen in i3
|
|
action =
|
|
{
|
|
type = "Keypress";
|
|
keys = ["KEY_LEFTMETA", "KEY_F"];
|
|
};
|
|
},
|
|
{
|
|
direction: "Down";
|
|
mode: "OnRelease";
|
|
// Move to new empty workspace in i3
|
|
action =
|
|
{
|
|
type = "Keypress";
|
|
keys = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_N"];
|
|
};
|
|
},
|
|
{
|
|
direction: "Left";
|
|
mode: "OnRelease";
|
|
// Previous workspace in i3
|
|
action =
|
|
{
|
|
type = "Keypress";
|
|
keys = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_TAB"];
|
|
};
|
|
},
|
|
{
|
|
direction: "Right";
|
|
mode: "OnRelease";
|
|
// Next workspace in i3
|
|
action =
|
|
{
|
|
type = "Keypress";
|
|
keys = ["KEY_LEFTMETA", "KEY_TAB"];
|
|
}
|
|
},
|
|
{
|
|
direction: "None";
|
|
mode: "OnRelease";
|
|
// Window list in i3
|
|
action =
|
|
{
|
|
type = "Keypress";
|
|
keys = ["KEY_LEFTMETA", "KEY_T"];
|
|
}
|
|
}
|
|
);
|
|
};
|
|
}
|
|
);
|
|
});
|