13 lines
531 B
Bash
Executable File
13 lines
531 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
WORKING=$PWD
|
|
|
|
|
|
cp "$SCRIPT_DIR/titlecardtemplate.html" "$SCRIPT_DIR/titlecard.html"
|
|
head -n 7 "$SCRIPT_DIR/titlecardtemplate.html" >"$SCRIPT_DIR/titlecard.html"
|
|
echo $@ >>"$SCRIPT_DIR/titlecard.html"
|
|
tail -n 4 "$SCRIPT_DIR/titlecardtemplate.html" >>"$SCRIPT_DIR/titlecard.html"
|
|
firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/tc.png" "file:///$SCRIPT_DIR/titlecard.html"
|
|
rm "$SCRIPT_DIR/titlecard.html"
|