diff --git a/Makefile b/Makefile index 0f4c8ad..84ddd55 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/chungus.sh b/chungus.sh new file mode 100755 index 0000000..cca1a2a --- /dev/null +++ b/chungus.sh @@ -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 + diff --git a/eminem.sh b/eminem.sh new file mode 100755 index 0000000..bb4b1ab --- /dev/null +++ b/eminem.sh @@ -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 + diff --git a/images/chungus.png b/images/chungus.png new file mode 100644 index 0000000..692b908 Binary files /dev/null and b/images/chungus.png differ diff --git a/images/eminem.png b/images/eminem.png new file mode 100644 index 0000000..c0a0c13 Binary files /dev/null and b/images/eminem.png differ diff --git a/images/stuff.png b/images/stuff.png new file mode 100644 index 0000000..95ff2a9 Binary files /dev/null and b/images/stuff.png differ diff --git a/stuff.png b/stuff.png deleted file mode 100644 index 69ae208..0000000 Binary files a/stuff.png and /dev/null differ diff --git a/stuff.sh b/stuff.sh index c666ee8..6bc3154 100755 --- a/stuff.sh +++ b/stuff.sh @@ -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