create wiki.vim keybind
This commit is contained in:
parent
8310a613d2
commit
7e603bf231
16
config.h
16
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 <X11/XF86keysym.h>
|
||||
|
||||
|
@ -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}} },
|
||||
|
|
Loading…
Reference in New Issue