From eff2972e8df8d01673f009d781d224692044fd74 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Sun, 22 Dec 2024 18:48:57 +0700 Subject: [PATCH] Add commands --- config.h | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index 9b3c0aa..710c532 100644 --- a/config.h +++ b/config.h @@ -69,11 +69,40 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "st", NULL }; +static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const Key keys[] = { +static const char *dmenucmd[] = { "dmenu_run", + "-m", dmenumon, + "-fn", dmenufont, + "-nb", col_gray1, + "-nf", col_gray3, + "-sb", col_cyan, + "-sf", col_gray4, NULL }; + +static const char *roficmd[] = { "rofi", + "-modi", "drun,power:~/.config/rofi/power-menu", + "-show", "drun", + "-show-icons", + "-theme", "Arc-Dark.rasi", + "-columns", "2", + "-lines", "10", + "-window-thumbnail", + "-font", "\"Open Sans 18\"", + "-opacity", + "-width", "80", + "-sidebar-mode", NULL }; + +static const char *termcmd[] = { "kitty" , NULL }; +static const char *filecmd[] = { "thunar" , NULL }; + +static const char *sca[] = { "scrot" , NULL }; +static const char *scr[] = { "scrot" , "-s" , NULL }; + +static const char *nmtui[] = { "kitty" , "nmtui" , NULL }; +static const char *nmcedit[] = { "nm-connection-editor" , NULL }; + +static const char *top[] = { "kitty" , "htop" , NULL }; +static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },