-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogiops.nix
84 lines (79 loc) · 2.16 KB
/
logiops.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{ lib, config, pkgs, ... }:
let cfg = config.cookie.logiops;
in with lib; {
options.cookie.logiops = {
enable = mkEnableOption "Enables Logiops for my MX Master 3";
};
config = mkIf cfg.enable {
services.logiops = {
enable = true;
package = pkgs.logiops_0_2_3;
settings = {
devices = [{
name = "Wireless Mouse MX Master 3";
smartshift = {
on = true;
# 0 means always in hyperfast mode, 50 means (almost) always in click-to-click mode.
threshold = 37;
};
hiresscroll = {
hires = true;
invert = false;
target = false;
};
dpi = 700;
buttons = [
{
cid = 195; # 0xc3
action = {
type = "Gestures";
gestures = [
({
direction = "Up";
mode = "OnRelease";
action = {
type = "Keypress";
keys = [ "KEY_UP" ];
};
})
({
direction = "Down";
mode = "OnRelease";
action = {
type = "Keypress";
keys = [ "KEY_DOWN" ];
};
})
({
direction = "Left";
mode = "OnRelease";
action = {
type = "CycleDPI";
dpis = [ 700 ];
};
})
({
direction = "Right";
mode = "OnRelease";
action = { type = "ToggleSmartshift"; };
})
({
direction = "None";
mode = "NoPress";
})
];
};
}
{
cid = 196; # 0xc4
action = {
type = "Keypress";
keys = [ "KEY_A" ];
};
}
];
}];
};
};
};
}