: nply/dwhkd

commit 9cbc999c47c661bd3d43478429d16009e6fe6f09
parent 02ea8692368f974074650eb42e4ba3dc4ce0e0d3
Author: theSoberSobber <akshatshrivastava0010@gmail.com>
Date: Mon, 4 Dec 2023 20:08:20 +0530

add admin terminal
1 file changed, 4 insertions(+), 2 deletions(-)
M
config.h
|
6
++++--
diff --git a/config.h b/config.h
@@ -8,9 +8,10 @@
 
 // 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 *codeforces[] = {"open", "https://codeforces.com", NULL};
+static const char *leetcode[] = {"open", "https://leetcode.com", NULL};
 
 #define NUMKEY(x) \
 		{MODKEY,	x+'0',	GoToDesktopNumberW, 	{.i= x ? x : 10}}, \

@@ -21,6 +22,7 @@ static Key keys[] = {
 	{ MODKEY,                       'B',       test,          {0} },
 	{ MODKEY,                       'P',       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,                       'E',       toggleexplorer, {0} },