Created
November 6, 2022 02:38
-
-
Save marcio/009e2808f1c7da0570380b7a8e21866c to your computer and use it in GitHub Desktop.
Logid Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File location: /etc/logid.cfg | |
// All configs (Keys) are based on GNOME running on UBUNTU | |
devices: ({ | |
name: "Wireless Mouse MX Master 3"; | |
smartshift: { | |
on: true; | |
threshold: 15; | |
}; | |
hiresscroll: { | |
hires: true; | |
invert: false; | |
target: false; | |
}; | |
dpi: 1500; // max=4000 | |
buttons: ( | |
// Forward button | |
{ | |
cid: 0x56; | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_FORWARD" ]; | |
} | |
}, | |
{ | |
direction: "Up"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_PLAYPAUSE" ]; | |
} | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA" ]; | |
} | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_NEXTSONG" ]; | |
} | |
}, | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_PREVIOUSSONG" ]; | |
} | |
} | |
); | |
}; | |
}, | |
// Back button | |
{ | |
cid: 0x53; | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_BACK" ]; | |
} | |
} | |
); | |
}; | |
}, | |
// Gesture button (hold and move) | |
{ | |
cid: 0xc3; | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA" ]; // open activities overview | |
} | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_RIGHT" ]; // snap window to right | |
} | |
}, | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_LEFT" ]; | |
} | |
}, | |
{ | |
direction: "Up"; | |
mode: "onRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_UP" ]; // maximize window | |
} | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: [ "KEY_LEFTMETA", "KEY_DOWN" ]; // minimize window | |
} | |
} | |
); | |
}; | |
}, | |
// Top button | |
{ | |
cid: 0xc4; | |
action = { | |
type: "Gestures"; | |
gestures: ( | |
{ | |
direction: "None"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA"], | |
} | |
}, | |
{ | |
direction: "Up"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_A"], //SHOW MENU | |
} | |
}, | |
{ | |
direction: "Down"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_LEFTMETA", "KEY_D"], //DESKTOP | |
} | |
}, | |
{ | |
direction: "Right"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"], //MOVE TO NEXT WORKSPACE | |
} | |
}, | |
{ | |
direction: "Left"; | |
mode: "OnRelease"; | |
action = { | |
type: "Keypress"; | |
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_LEFT"], //MOVE TO PREVIOUS WORKSPACE | |
} | |
} | |
); | |
}; | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment