Commit b0b1876b authored by uoou's avatar uoou

timer for random movie wallpaper

parent 0ab31c5a
#!/usr/bin/env bash
if [ ! -f "$1" ];then
echo "No such file"
exit 1
fi
nosuf="${1%.*}"
location="$nosuf""_dope.png"
ffmpeg -i "$1" -vf hue=h=310:s=2.8:b=3,eq=contrast=4 "$location" -y >> /dev/null 2>&1 &&
convert "$location" \
-set option:distort:viewport '%wx%h+0+0' \
-colorspace CMYK -separate null: \
\( -size 3x3 xc: \( +clone -negate \) \
+append \( +clone -negate \) -append \) \
-virtual-pixel tile -filter gaussian \
\( +clone -distort SRT 60 \) +swap \
\( +clone -distort SRT 30 \) +swap \
\( +clone -distort SRT 45 \) +swap \
\( +clone -fill black -colorize 100 -distort SRT 0 \) +swap +delete \
-compose Overlay -layers composite \
-set colorspace CMYK -combine -colorspace RGB \
"$location" &&
convert "$location" \
-virtual-pixel edge -channel M -fx "p[-5,-1]" \
"$location"
......@@ -19,6 +19,7 @@ if [ "$seconds" -le 0 ];then
exit 1
fi
randpoint=$((1 + RANDOM % "$seconds"))
randpoint=3728
ffmpeg -ss "$randpoint" -i "$1" -vf hue=h=310:s=2.8:b=3,eq=contrast=4 -vframes 1 "$location" -y >> /dev/null 2>&1 &&
convert "$location" \
......
diff --git a/config.def.h b/config.def.h
index 1c0b587..fe6f5ab 100644
index 1c0b587..f0eb248 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,21 +1,31 @@
......@@ -39,7 +39,7 @@ index 1c0b587..fe6f5ab 100644
- [SchemeSel] = { col_gray4, col_cyan, col_cyan },
+ /* fg bg border */
+ [SchemeNorm] = { col_white, col_dark_grey, col_dark_grey },
+ [SchemeSel] = { col_red, col_dark_grey, col_red },
+ [SchemeSel] = { col_red, col_dark_grey, col_white },
+};
+static const unsigned int alphas[][3] = {
+ /* fg bg border */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment