dwm-goatcmd-20211013-5ed9c48.diff (1558B)
1 From 96842fd35e8b7402673006627f8a05a6ced988e8 Mon Sep 17 00:00:00 2001 2 From: Anders Damsgaard <anders@adamsgaard.dk> 3 Date: Wed, 13 Oct 2021 21:32:16 +0200 4 Subject: [PATCH] Goat command for dwm 5 6 --- 7 config.def.h | 2 ++ 8 1 file changed, 2 insertions(+) 9 10 diff --git a/config.def.h b/config.def.h 11 index 1c0b587..6b25ac1 100644 12 --- a/config.def.h 13 +++ b/config.def.h 14 @@ -58,6 +58,7 @@ static const Layout layouts[] = { 15 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ 16 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; 17 static const char *termcmd[] = { "st", NULL }; 18 +static const char *goatcmd[] = { "sh", "-c", "mpv \"$(hurl gopher://bitreich.org/0/memecache/index.meme | grep goat | grep -E '\.(mp4|mkv|webm|avi) ' | cut -f2 -d' ' | sort -R | head -n 1)\"", NULL }; 19 20 static Key keys[] = { 21 /* modifier key function argument */ 22 @@ -84,6 +85,7 @@ static Key keys[] = { 23 { MODKEY, XK_period, focusmon, {.i = +1 } }, 24 { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, 25 { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, 26 + { MODKEY|ControlMask|ShiftMask, XK_g, spawn, {.v = goatcmd } }, 27 TAGKEYS( XK_1, 0) 28 TAGKEYS( XK_2, 1) 29 TAGKEYS( XK_3, 2) 30 -- 31 2.33.0 32