-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkeymaps.py
executable file
·94 lines (93 loc) · 2.79 KB
/
keymaps.py
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
85
86
87
88
89
90
91
92
93
94
from adafruit_hid.keycode import Keycode
key_maps = {
1: {
"Name": "MacOS",
0: ([Keycode.COMMAND, Keycode.X], "Cut"),
1: ([Keycode.COMMAND, Keycode.C], "Copy"),
2: ([Keycode.COMMAND, Keycode.V], "Paste"),
3: ([Keycode.COMMAND, Keycode.Z], "Undo"),
4: ([Keycode.COMMAND, Keycode.SHIFT, Keycode.Z], "Redo"),
5: ([Keycode.OPTION, Keycode.COMMAND, Keycode.ESCAPE], "Quit"),
6: ("", ""),
7: ("", ""),
8: ("", ""),
9: ("", ""),
10: ("", ""),
11: ("", ""),
},
2: {
"Name": "Windows",
0: ([Keycode.CONTROL, Keycode.X], "Cut"),
1: ([Keycode.CONTROL, Keycode.C], "Copy"),
2: ([Keycode.CONTROL, Keycode.V], "Paste"),
3: ([Keycode.CONTROL, Keycode.Z], "Undo"),
4: ([Keycode.CONTROL, Keycode.SHIFT, Keycode.ESCAPE], "Task"),
5: ("", ""),
6: ("", ""),
7: ("", ""),
8: ("", ""),
9: ("", ""),
10: ("", ""),
11: ("", ""),
},
3: {
"Name": "Git",
0: ("git status\n", "status"),
1: ("git diff\n", "diff"),
2: ("git pull\n", "pull"),
3: ('git commit -m "', "commit"),
4: ("git push\n", "push"),
5: ("", ""),
6: ("", ""),
7: ("", ""),
8: ("", ""),
9: ("", ""),
10: ("", ""),
11: ("", ""),
},
4: {
"Name": "Numpad",
0: (Keycode.SEVEN, "7"),
1: (Keycode.EIGHT, "8"),
2: (Keycode.NINE, "9"),
3: (Keycode.FOUR, "4"),
4: (Keycode.FIVE, "5"),
5: (Keycode.SIX, "6"),
6: (Keycode.ONE, "1"),
7: (Keycode.TWO, "2"),
8: (Keycode.THREE, "3"),
9: (Keycode.ZERO, "0"),
10: (Keycode.PERIOD, "."),
11: (Keycode.ENTER, "Enter"),
},
5: {
"Name": "Alt Numpad",
0: (Keycode.HOME, "Home"),
1: (Keycode.UP_ARROW, "Up"),
2: (Keycode.PAGE_UP, "PgUp"),
3: (Keycode.LEFT_ARROW, "Left"),
4: ("", ""),
5: (Keycode.RIGHT_ARROW, "Right"),
6: (Keycode.END, "End"),
7: (Keycode.DOWN_ARROW, "Down"),
8: (Keycode.PAGE_DOWN, "PgDn"),
9: (Keycode.INSERT, "Ins"),
10: (Keycode.DELETE, "Del"),
11: (Keycode.ENTER, "Enter"),
},
6: {
"Name": "Rick Roll",
0: ("Never gonna give you up\n","1"),
1: ("Never gonna let you down\n","2"),
2: ("Never gonna run around and desert you\n","3"),
3: ("Never gonna make you cry\n","4"),
4: ("Never gonna say goodbye\n","5"),
5: ("Never gonna tell a lie and hurt you\n","6"),
6: ("https://www.youtube.com/watch?v=dQw4w9WgXcQ\n","YouTube"),
7: ("", ""),
8: ("", ""),
9: ("", ""),
10: ("", ""),
11: ("", ""),
}
}