-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h
52 lines (48 loc) · 2.34 KB
/
config.h
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
#define MODKEY (MOD_ALT)
// options: MOD_WIN | MOD_CTRL | MOD_SHIFT | MOD_ALT
// can be combined by binary OR operator
// Use MODKEY | MOD_SHIFT for mod + shift
// VK_RETURN == RETURN KEY on Keyboard
// VK_TAB == TAB KEY on Keyboard
// command, argument
static const char *termcmd[] = {NULL, "wt.exe", NULL };
static const char *adminCmd[] = {"runas", "wt.exe", NULL};
static const char *vscode[] = {NULL, "code", "D:/code"};
static const char *codeforces[] = {"open", "https://codeforces.com", NULL};
static const char *leetcode[] = {"open", "https://leetcode.com", NULL};
static const char *explorer[] = {NULL, "explorer.exe", NULL};
static const char *taskManager[] = {NULL, "Taskmgr.exe", NULL};
static const char *adbConnect[] = {NULL, "D:/win32/ADB-Connect/adb-tcpip-connect.exe", NULL};
static const char *scrcpy[] = {NULL, "D:/win32/ADB-Connect/launch-scrcpy.vbs", NULL};
#define NUMKEY(x) \
{MODKEY, x+'0', GoToDesktopNumberW, {.i= x ? x : 10}}, \
{MODKEY|MOD_SHIFT, x+'0', MoveWindowToDesktopNumberW, {.i= x ? x : 10}}
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, 'B', test, {0} },
{ MODKEY, 'O', spawn, {.v = vscode} },
{ MODKEY, VK_RETURN, spawn, {.v = termcmd } },
{ MODKEY | MOD_SHIFT, VK_RETURN, spawn, {.v = adminCmd } },
{ MODKEY, 'C', spawn, {.v = codeforces } },
{ MODKEY, 'L', spawn, {.v = leetcode } },
{ MODKEY | MOD_SHIFT, 'E', toggleexplorer, {0} },
{ MODKEY, 'Q', killForeground, {0} },
{ MODKEY | MOD_SHIFT, 'Q', killMacForeground, {0} },
{ MODKEY, 'E', spawn, {.v = explorer}},
{ MODKEY | MOD_SHIFT, 'Q', quit, {0} },
{ MODKEY, 'T', spawn, {.v = taskManager } },
{ MODKEY, 'D', spawn, {.v = adbConnect } },
{ MODKEY, 'F', spawn, {.v = scrcpy } },
#ifdef VDA_FEATURES
NUMKEY(1),
NUMKEY(2),
NUMKEY(3),
NUMKEY(4),
NUMKEY(5),
NUMKEY(6),
NUMKEY(7),
NUMKEY(8),
NUMKEY(9),
NUMKEY(0),
#endif
};