Files

105 lines
2.2 KiB
INI
Raw Permalink Normal View History

2026-11-18 22:28:25 -08:00
// Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten.
// Ported from hosts/nixbox/configuration.nix.
2026-11-19 17:32:09 -08:00
// The 500 ms default is too short for the MX Master 4 reconnecting after a wake.
io_timeout: 3000.0;
2026-11-18 22:28:25 -08:00
devices: (
2026-11-19 17:32:09 -08:00
{
name: "MX Master 4";
// Matches the kernel's hi-res wheel multiplier; otherwise each notch
// scrolls a fraction of a line.
hiresscroll: {
hires: true;
invert: false;
target: false;
};
// Thumb buttons send Super+Page_Up/Page_Down: switch workspaces in GNOME and niri.
buttons: (
{
cid: 0x53;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEUP"];
};
},
{
cid: 0x56;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEDOWN"];
};
}
);
},
2026-11-18 22:28:25 -08:00
{
name: "Wireless Mouse MX Master 3";
hiresscroll: {
};
thumbwheel: {
invert: true;
};
buttons: (
{
cid: 0x53;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_LEFT"];
};
},
{
cid: 0x56;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_RIGHT"];
};
}
);
},
{
name: "MX Vertical Advanced Ergonomic Mouse";
hiresscroll: {
hires: true;
invert: false;
target: false;
};
buttons: (
{
cid: 0x53;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEUP"];
};
},
{
cid: 0x56;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEDOWN"];
};
},
{
cid: 0xfd;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA"];
};
}
);
}
);