commit b8569e767b1b20a9775b44e706bbe84553b41136 Author: davidovski Date: Mon May 3 22:31:20 2021 +0100 i am stuff diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0f4c8ad --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +install: stuff.sh stuff.png + mkdir /usr/share/stuff + cp stuff.png /usr/share/stuff/ + cp stuff.sh /usr/bin/stuff + chmod +x /usr/bin/stuff +clean: + rm -r /usr/share/stuff + rm /usr/bin/stuff diff --git a/stuff.png b/stuff.png new file mode 100644 index 0000000..1d01997 Binary files /dev/null and b/stuff.png differ diff --git a/stuff.sh b/stuff.sh new file mode 100755 index 0000000..3e0dd00 --- /dev/null +++ b/stuff.sh @@ -0,0 +1,5 @@ +#!/bin/sh +[ $# -eq 0 ] && exit 1 +STUFF_FILE=/usr/share/stuff/stuff.png +FILE=/tmp/$(date "+%Y-%m-%d-%H-%M-%S").png +convert -pointsize 55 -fill black -annotate +10+300 "$@" -colorspace RGB $STUFF_FILE $FILE ; xclip -selection clipboard -t image/png -i $FILE