summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-03-29 21:36:58 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-03-29 21:36:58 -0400
commitea93a82326351e1e4090f810866c8ce0bab30fde (patch)
tree0da59e011b7e8654f442272a195d1490f7337ce4 /.local
parent622252cd3778b48ecb1bcebde4ecff86118f9e8b (diff)
parent2c7a3344693503a97195d3b637acb9b8e912d562 (diff)
downloadeibhear-ea93a82326351e1e4090f810866c8ce0bab30fde.tar.gz
eibhear-ea93a82326351e1e4090f810866c8ce0bab30fde.tar.zst
eibhear-ea93a82326351e1e4090f810866c8ce0bab30fde.zip
Merge branch 'Jonatan6-patch-1'
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/slider4
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/slider b/.local/bin/slider
index d8d87b1..674781a 100755
--- a/.local/bin/slider
+++ b/.local/bin/slider
@@ -12,6 +12,7 @@ cache="${XDG_CACHE_HOME:-$HOME/.cache}/slider"
while getopts "hvrpi:c:a:o:d:f:t:e:x:" o; do case "${o}" in
c) bgc="$OPTARG" ;;
t) fgc="$OPTARG" ;;
+ f) font="$OPTARG" ;;
i) file="$OPTARG" ;;
a) audio="$OPTARG" ;;
o) outfile="$OPTARG" ;;
@@ -34,6 +35,7 @@ while getopts "hvrpi:c:a:o:d:f:t:e:x:" o; do case "${o}" in
-c color of background (use html names, black is default)
-t text color for text slides (white is default)
-s text font size for text slides (150 is default)
+ -f text font for text slides (sans serif is default)
-o output video file
-e if no audio given, the time in seconds that the last slide will be shown (5 is default)
-x resolution (1920x1080 is default)
@@ -96,7 +98,7 @@ do
convert -size "${res:-1920x1080}" canvas:"${bgc:-black}" -gravity center "$content" -resize 1920x1080 -composite "$prepdir/$base"
else
{ [ ! -f "$prepdir/$base" ] || [ -n "${redo+x}" ] ;} &&
- convert -size "${res:-1920x1080}" -background "${bgc:-black}" -fill "${fgc:-white}" -pointsize "${ppt:-150}" -gravity center label:"$content" "$prepdir/$base"
+ convert -size "${res:-1920x1080}" -background "${bgc:-black}" -fill "${fgc:-white}" -font "${font:-Sans}" -pointsize "${ppt:-150}" -gravity center label:"$content" "$prepdir/$base"
fi
# If the first line, do not write yet.