i am stuff

This commit is contained in:
davidovski 2021-05-03 22:31:20 +01:00
commit b8569e767b
3 changed files with 13 additions and 0 deletions

8
Makefile Normal file
View File

@ -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

BIN
stuff.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

5
stuff.sh Executable file
View File

@ -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