Commits

Anonymous committed 64ca824

add prompts for dmenu, add find window

  • Participants
  • Parent commits 4c602e3
  • Branches emg

Comments (0)

Files changed (2)

 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
 
 /* commands */
-static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
+static const char *dmenucmd[] = { "dmenu_run", "-p", "run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
 static const char *termcmd[]  = { "urxvtc", NULL };
 static const char *specialmenu[] = { "special_menu", NULL };
 static const char *specialterm[]  = { "special_term", NULL };
 	{ MODKEY,                       XK_minus,  spawn,          SHCMD("amixer set Master 10%-") },
 	{ MODKEY|ShiftMask,             XK_equal,  spawn,          SHCMD("amixer set Master 100%") },
 	{ MODKEY|ShiftMask,             XK_minus,  spawn,          SHCMD("amixer set Master 0") },
+	{ MODKEY,                       XK_slash,  spawn,          SHCMD("find_win.sh") },
 	{ MODKEY,                       XK_b,      togglebar,      {0} },
 	{ MODKEY,                       XK_n,      nametag,        {0} },
 	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
 	FILE *fp;
 	int i;
 
-	if(!(fp = (FILE*)popen("echo -n | dmenu", "r")))
+	if(!(fp = (FILE*)popen("echo -n | dmenu -p \"tagname\"", "r")))
 		fprintf(stderr, "dwm: Could not popen 'echo -n | dmenu'\n");
 	cp = fgets(name, MAX_TAGLEN, fp);
 	pclose(fp);