mirror of
https://github.com/avinal/dotfiles.git
synced 2026-07-03 23:20:07 +05:30
add logitech mouse config for sway
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
@@ -0,0 +1,91 @@
|
|||||||
|
devices: (
|
||||||
|
{
|
||||||
|
name: "MX Master 3S";
|
||||||
|
smartshift:
|
||||||
|
{
|
||||||
|
on: true;
|
||||||
|
threshold: 30;
|
||||||
|
torque: 50;
|
||||||
|
};
|
||||||
|
hiresscroll:
|
||||||
|
{
|
||||||
|
hires: true;
|
||||||
|
invert: false;
|
||||||
|
target: false;
|
||||||
|
};
|
||||||
|
dpi: 2000;
|
||||||
|
|
||||||
|
buttons: (
|
||||||
|
{
|
||||||
|
cid: 0xc3;
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "Gestures";
|
||||||
|
gestures: (
|
||||||
|
{
|
||||||
|
direction: "Up";
|
||||||
|
mode: "OnRelease";
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "Keypress";
|
||||||
|
keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_UP"];
|
||||||
|
};
|
||||||
|
},
|
||||||
|
{
|
||||||
|
direction: "Down";
|
||||||
|
mode: "OnRelease";
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "Keypress";
|
||||||
|
keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_DOWN"];
|
||||||
|
};
|
||||||
|
},
|
||||||
|
{
|
||||||
|
direction: "Left";
|
||||||
|
mode: "OnRelease";
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "Keypress";
|
||||||
|
keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_LEFT"];
|
||||||
|
};
|
||||||
|
},
|
||||||
|
{
|
||||||
|
direction: "Right";
|
||||||
|
mode: "OnRelease";
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "Keypress";
|
||||||
|
keys = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_RIGHT"];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
direction: "None"
|
||||||
|
mode: "OnRelease";
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "Keypress";
|
||||||
|
keys: ["KEY_LEFTMETA", "KEY_ENTER"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
{
|
||||||
|
cid: 0x52;
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "Keypress";
|
||||||
|
keys: ["KEY_RIGHTCTRL", "KEY_PRINT"]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
{
|
||||||
|
cid: 0xc4;
|
||||||
|
action =
|
||||||
|
{
|
||||||
|
type: "ToggleSmartshift";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user