create nmtui scratchpad

This commit is contained in:
Luca Bilke 2023-06-16 11:33:37 +02:00
parent 3dd2239cc5
commit 8310a613d2
No known key found for this signature in database
GPG Key ID: 7B77C51E8C779E75
1 changed files with 3 additions and 1 deletions

View File

@ -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 <X11/XF86keysym.h>
@ -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]} },