From fd2c508cde1393cbaf4d25abdf9eaebbe5f73895 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 18 Nov 2023 20:21:50 +0100 Subject: bin/sbin: Use the new ‘notify’ API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/send-package | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/send-package (limited to '.local/bin/send-package') 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 -- cgit v1.2.3