summaryrefslogtreecommitdiff
path: root/.local/bin/send-package
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-18 20:21:50 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-18 20:21:50 +0100
commitfd2c508cde1393cbaf4d25abdf9eaebbe5f73895 (patch)
treedbb46663dc495da2ffdd5d7da66c2b6c38de5eb4 /.local/bin/send-package
parentf8f144c9810fd6f16f843de4297cc20498a11291 (diff)
bin/sbin: Use the new ‘notify’ API
Diffstat (limited to '.local/bin/send-package')
-rwxr-xr-x.local/bin/send-package11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/send-package b/.local/bin/send-package
new file mode 100755
index 0000000..bcd7eb0
--- /dev/null
+++ b/.local/bin/send-package
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Why not?
+
+readonly tmpl="${XDG_DATA_HOME:-$HOME/.local/share}/send-package/template"
+
+sed -En '/^Angel Cakes/,/^Doozies/s/(\t|\s{2,})/\n/gp' ~/doc/tit-names \
+| shuf -n1 \
+| tr A-Z a-z \
+| xargs -I{} -- sed 's/$REPLACEME/{}/' "$tmpl" \
+| smail