commit f90c0ad389fb6c9560714fb14f40211704b7b854
parent a3c0eea3362de49d4a59220856742f41f5e9eb7e
Author: theSoberSobber <akshatshrivastava0010@gmail.com>
Date: Mon, 4 Dec 2023 10:30:53 +0530
parent a3c0eea3362de49d4a59220856742f41f5e9eb7e
Author: theSoberSobber <akshatshrivastava0010@gmail.com>
Date: Mon, 4 Dec 2023 10:30:53 +0530
update readme-sample
1 file changed, 25 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md @@ -13,24 +13,41 @@ Please see [VD-Action.md](./VD-action.md). # Sample config.h ```c -#define MODKEY (MOD_ALT) +#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[] = { "cmd.exe", NULL }; +static const char *termcmd[] = { "wt.exe", NULL }; static const char *vscode[] = {"code", "D:/code"}; +#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, 'P', spawn, {.v = vscode} }, - { MODKEY, VK_RETURN, spawn, {.v = termcmd } }, - { MODKEY, 'E', toggleexplorer, {0} }, - { MODKEY | MOD_SHIFT, 'Q', quit, {0} } + /* modifier key function argument */ + { MODKEY, 'B', test, {0} }, + { MODKEY, 'P', spawn, {.v = vscode} }, + { MODKEY, VK_RETURN, spawn, {.v = termcmd } }, + { MODKEY, 'E', toggleexplorer, {0} }, + { MODKEY | MOD_SHIFT, 'Q', quit, {0} }, + #ifdef VDA_FEATURES + NUMKEY(1), + NUMKEY(2), + NUMKEY(3), + NUMKEY(4), + NUMKEY(5), + NUMKEY(6), + NUMKEY(7), + NUMKEY(8), + NUMKEY(9), + NUMKEY(0), + #endif }; ```
: nply/dwhkd