Skip to content

Instantly share code, notes, and snippets.

@lancegatlin
Last active June 28, 2019 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lancegatlin/32863ccfd02dddfbc8fef63d27324f5d to your computer and use it in GitHub Desktop.
Save lancegatlin/32863ccfd02dddfbc8fef63d27324f5d to your computer and use it in GitHub Desktop.
/* Keypad to Karabiner mapping (to avoid interference with regular keyboard)
* note: using device id would make all this unnecessary
* ,---------------------------------------------. ,--------------------------------.
* | KP_COMMA | KP_1 | KP_4 | KP_7 | NUMLOCK | | lang1 | f22 | f19 | f16 | f13 |
* |----------+------+------+------+-------------| |--------+-----+-----+-----+-----|
* | KP_0 | KP_2 | KP_5 | KP_8 | KP_SLASH | | lang2 | f23 | f20 | f17 | f14 |
* |----------+------+------+------+-------------| |--------+-----+-----+-----+-----|
* | KP_DOT | KP_3 | KP_6 | KP_9 | KP_ASTERISK | | lang3 | f24 | f21 | f18 | f15 |
* `---------------------------------------------' `--------------------------------'
* ,-------------------------------. ,----------,-----------------.
* | KP_PLUS | KP_MINUS | | | | lang5 | lang6 |
* `--------------------| KP_EQUAL | | lang4 |--------+--------.
* | | | |
* `----------' `----------'
*/
Logitech buttons
---
1: left click
2: right click
3: scroll wheel click
4: left down button -> lang6 (00000.10000)
5: right up button -> lang4 (00000.30000)
/* Keypad
*
* ,---------------------------------------------. ,----------------------------.
* | KP_COMMA | KP_1 | KP_4 | KP_7 | NUMLOCK | | ESCAPE | 7 | 4 | 1 | COMMA |
* |----------+------+------+------+-------------| |--------+---+---+---+-------|
* | KP_0 | KP_2 | KP_5 | KP_8 | KP_SLASH | | BSPACE | 8 | 5 | 2 | 0 |
* |----------+------+------+------+-------------| |--------+---+---+---+-------|
* | KP_DOT | KP_3 | KP_6 | KP_9 | KP_ASTERISK | | MINUS | 9 | 6 | 3 | DOT |
* `---------------------------------------------' `----------------------------'
* ,-------------------------------. ,----------,-----------------.
* | KP_PLUS | KP_MINUS | | | | ENTER | RSHIFT |
* `--------------------| KP_EQUAL | | SPACE |--------+--------.
* | | | |
* `----------' `----------'
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment