sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit b22aa148049147373d3f342a3db9e0279dfe753e
parent 7c52dad09fae963b041a4801c0420a9964b0b7b1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 14 Oct 2021 10:59:51 +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 <anders@adamsgaard.dk>

Diffstat:
Adwm.suckless.org/patches/goatcmd/dwm-goatcmd-20211013-5ed9c48.diff | 32++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/goatcmd/index.md | 16++++++++++++++++
2 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/goatcmd/dwm-goatcmd-20211013-5ed9c48.diff 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 <anders@adamsgaard.dk> +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 @@ -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 <anders@adamsgaard.dk>