title card

I like this method, it dumps it back where you are
This commit is contained in:
adam 2024-07-23 13:09:34 -04:00
parent 19a744f967
commit 4f36624aa3
2 changed files with 40 additions and 0 deletions

12
title card/titlecard.sh Executable file
View File

@ -0,0 +1,12 @@
#!/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 23 "$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"

View File

@ -0,0 +1,28 @@
<html>
<head>
<style type="text/css">
body{
padding:0;
margin:0;
background-color: #333333;
}
div{
display:inline-flex;
}
.centerized{
color: #DEDEDE;
font-size: 8em;
display:block;
margin: auto;
font-family: "Roboto Slab";
}
</style>
</head>
<body>
<div style="width:3840; height:2160; margin:0">
<div class="centerized">
loading...
</div>
</div>
</body>
</html>