added eminem and chungus

This commit is contained in:
davidovski 2021-05-04 00:05:05 +01:00
parent fc630c6b55
commit d961f35700
8 changed files with 32 additions and 4 deletions

View file

@ -1,8 +1,14 @@
install: stuff.sh stuff.png
install: stuff.sh images
mkdir /usr/share/stuff
cp stuff.png /usr/share/stuff/
cp images/* /usr/share/stuff/
cp stuff.sh /usr/bin/stuff
chmod +x /usr/bin/stuff
cp chungus.sh /usr/bin/chungus
chmod +x /usr/bin/chungus
cp eminem.sh /usr/bin/eminem
chmod +x /usr/bin/eminem
clean:
rm -r /usr/share/stuff
rm /usr/bin/stuff
rm /usr/bin/chungus
rm /usr/bin/eminem

11
chungus.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
[ $# -eq 0 ] && exit 1
STUFF_FILE=/usr/share/stuff/chungus.png
FILE=/tmp/$(date "+%Y-%m-%d-%H-%M-%S").png
LABEL_FILE=$FILE.label.png
text=$@
convert -gravity center -background white -fill black -pointsize 40 -size 250x caption:"$text" $LABEL_FILE
convert -gravity center -background white $STUFF_FILE $LABEL_FILE +append $FILE
xclip -selection clipboard -t image/png -i $FILE

11
eminem.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
[ $# -eq 0 ] && exit 1
STUFF_FILE=/usr/share/stuff/eminem.png
FILE=/tmp/$(date "+%Y-%m-%d-%H-%M-%S").png
LABEL_FILE=$FILE.label.png
text=$@
convert -gravity center -background white -fill black -pointsize 80 -size 800x caption:"$text" $LABEL_FILE
convert -gravity center -background white $LABEL_FILE $STUFF_FILE +append $FILE
xclip -selection clipboard -t image/png -i $FILE

BIN
images/chungus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
images/eminem.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

BIN
images/stuff.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

BIN
stuff.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

View file

@ -5,7 +5,7 @@ FILE=/tmp/$(date "+%Y-%m-%d-%H-%M-%S").png
LABEL_FILE=$FILE.label.png
text=$@
convert -background white -fill black -pointsize 80 -size 1000x caption:"$text" $LABEL_FILE
convert -gravity center $LABEL_FILE $STUFF_FILE +append $FILE
convert -gravity center -background white -fill black -pointsize 80 -size 500x caption:"$text" $LABEL_FILE
convert -gravity center -background white $LABEL_FILE $STUFF_FILE +append $FILE
xclip -selection clipboard -t image/png -i $FILE