commit b22aa148049147373d3f342a3db9e0279dfe753e
Author: Hiltjo Posthuma <[email protected]>
Date:   Thu Oct 14 10:59:51 2021 +0200

    [dwm][patches][goat] Add a key binding to play goat videos on-the-fly 
(on-the-goat?)
    
    Add a key binding to play goat videos on-the-fly (on-the-goat?) using
    Mod1-Ctrl-Shift-g.
    
    Contribution to mankind by: Anders Damsgaard <[email protected]>

diff --git a/dwm.suckless.org/patches/goatcmd/dwm-goatcmd-20211013-5ed9c48.diff 
b/dwm.suckless.org/patches/goatcmd/dwm-goatcmd-20211013-5ed9c48.diff
new file mode 100644
index 00000000..384c86a5
--- /dev/null
+++ b/dwm.suckless.org/patches/goatcmd/dwm-goatcmd-20211013-5ed9c48.diff
@@ -0,0 +1,32 @@
+From 96842fd35e8b7402673006627f8a05a6ced988e8 Mon Sep 17 00:00:00 2001
+From: Anders Damsgaard <[email protected]>
+Date: Wed, 13 Oct 2021 21:32:16 +0200
+Subject: [PATCH] Goat command for dwm
+
+---
+ config.def.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/config.def.h b/config.def.h
+index 1c0b587..6b25ac1 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -58,6 +58,7 @@ static const Layout layouts[] = {
+ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in 
spawn() */
+ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", 
dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", 
col_gray4, NULL };
+ static const char *termcmd[]  = { "st", NULL };
++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 };
+ 
+ static Key keys[] = {
+       /* modifier                     key        function        argument */
+@@ -84,6 +85,7 @@ static Key keys[] = {
+       { MODKEY,                       XK_period, focusmon,       {.i = +1 } },
+       { MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
+       { MODKEY|ShiftMask,             XK_period, tagmon,         {.i = +1 } },
++      { MODKEY|ControlMask|ShiftMask, XK_g,      spawn,          {.v = 
goatcmd } },
+       TAGKEYS(                        XK_1,                      0)
+       TAGKEYS(                        XK_2,                      1)
+       TAGKEYS(                        XK_3,                      2)
+-- 
+2.33.0
+
diff --git a/dwm.suckless.org/patches/goatcmd/index.md 
b/dwm.suckless.org/patches/goatcmd/index.md
new file mode 100644
index 00000000..a68b4cd3
--- /dev/null
+++ b/dwm.suckless.org/patches/goatcmd/index.md
@@ -0,0 +1,16 @@
+goatcmd
+=======
+
+Description
+-----------
+Add a key binding to play goat videos on-the-fly (on-the-goat?) using
+Mod1-Ctrl-Shift-g.
+
+
+Download
+--------
+* [dwm-goatcmd-20211013-5ed9c48.diff](dwm-goatcmd-20211013-5ed9c48.diff)
+
+Authors
+-------
+* Anders Damsgaard <[email protected]>


Reply via email to