From 7e603bf23161c74b8525b9dc3342f09089151e10 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Sat, 17 Jun 2023 16:18:08 +0200 Subject: [PATCH] create wiki.vim keybind --- config.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/config.h b/config.h index 35d5fd7..31603cc 100644 --- a/config.h +++ b/config.h @@ -72,6 +72,7 @@ static const Rule rules[] = { { 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 }, + { NULL, "spwiki", NULL, 'v', 0, 1, 0, 0, .5, .5, .8, .8, -1 }, }; /* layout(s) */ @@ -104,13 +105,14 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char *[]) { "/bin/sh", "-c", cmd, NULL } } /* commands */ -static const char *spqalc[] = { "q", "qalculate-gtk", NULL }; -static const char *spterm[] = { "t", TERMINAL, "-n", "spterm", "-d", "~", NULL }; -static const char *splf[] = { "l", TERMINAL, "-n", "splf", "-d", "~", "-e", "lfub", NULL }; -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 *spqalc[] = { "q", "qalculate-gtk", NULL }; +static const char *spterm[] = { "t", TERMINAL, "-n", "spterm", "-d", "~", NULL }; +static const char *splf[] = { "l", TERMINAL, "-n", "splf", "-d", "~", "-e", "lfub", NULL }; +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 }; +static const char *spwiki[] = { "v", TERMINAL, "-n", "spwiki", "-e", "nvim", "+WikiIndex", NULL }; #include @@ -212,7 +214,7 @@ static const Key keys[] = { // { MODKEY | ShiftMask, XK_x, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_b, togglebar, {0} }, // { MODKEY | ShiftMask, XK_b, spawn, {.v = (const char *[]){NULL}} }, - { MODKEY, XK_m, spawn, {.v = (const char *[]){BROWSER, "listen.tidal.com", NULL }} }, + { MODKEY, XK_m, togglescratch, {.v = spwiki} }, { MODKEY | ShiftMask, XK_m, spawn, {.v = (const char *[]){"pamixer-notify", "-t", NULL}} }, { MODKEY, XK_w, spawn, {.v = (const char *[]){"ferdium", NULL}} }, // { MODKEY | ShiftMask, XK_w, spawn, {.v = (const char *[]){NULL}} },