diff --git a/config.h b/config.h index 4c1dc47..35d5fd7 100644 --- a/config.h +++ b/config.h @@ -71,6 +71,7 @@ static const Rule rules[] = { { NULL, "splf", NULL, 'l', 0, 1, 0, 0, .5, .5, .8, .8, -1 }, { NULL, "sphtop", NULL, 'h', 0, 1, 0, 0, .5, .5, .8, .8, -1 }, { NULL, "spmix", NULL, 'm', 0, 1, 0, 0, -4, -4, 900, 600, -1 }, + { NULL, "spnmtui", NULL, 'i', 0, 1, 0, 0, -4, -4, .15, .5, -1 }, }; /* layout(s) */ @@ -109,6 +110,7 @@ static const char *splf[] = { "l", TERMINAL, "-n", "splf", "-d", "~", "-e", "l static const char *sphtop[] = { "h", TERMINAL, "-n", "sphtop", "-e", "htop", NULL }; static const char *spmix[] = { "m", TERMINAL, "-n", "spmix", "-e", "pulsemixer", NULL }; static const char *sphelp[] = { "n", TERMINAL, "-n", "sphelp", "-e", "/bin/sh", "-c", "lowdown -Tterm /usr/local/share/dwm/dwm.md | less", NULL }; +static const char *spnmtui[] = { "i", TERMINAL, "-n", "spnmtui", "-e", "nmtui", NULL }; #include @@ -186,7 +188,7 @@ static const Key keys[] = { { MODKEY, XK_h, setmfact, {.f = -0.05} }, // { MODKEY | ShiftMask, XK_h, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_t, spawn, {.v = (const char *[]){BROWSER, NULL}} }, - { MODKEY | ShiftMask, XK_t, spawn, {.v = (const char *[]){TERMINAL, "-e", "sudo", "-E", "nmtui", NULL}} }, + { MODKEY | ShiftMask, XK_t, togglescratch, {.v = spnmtui} }, { MODKEY, XK_n, setlayout, {.v = &layouts[0]} }, { MODKEY | ShiftMask, XK_n, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_s, setlayout, {.v = &layouts[2]} },