Commit b74b74f4 authored by uoou's avatar uoou

timer for random movie wallpaper

parent ab432e01
......@@ -5,7 +5,7 @@ if [ ! -f "$1" ];then
exit 1
fi
suf="${1##*.}"
if [ "$suf" != "mp4" ] && [ "$suf" != "mkv" ] && [ "$suf" != "avi" ] && [ "$suf" != "mov" ] && [ "$suf" != "gif" ] && [ "$suf" != "flv" ];then
if [ "$suf" != "mp4" ] && [ "$suf" != "mkv" ] && [ "$suf" != "avi" ] && [ "$suf" != "mov" ] && [ "$suf" != "gif" ] && [ "$suf" != "flv" ] && [ "$suf" != "m4v" ];then
echo "Input needs to be a video"
exit 1
fi
......
/home/drew/share/films/Capricorn.One.1978.720p.BRRip.x264-x0r/Capricorn.One.1978.720p.BRRip.x264-x0r.mkv
/home/drew/share/films/White.Men.Cant.Jump.1992.UNRATED.1080p.BluRay.x264.anoXmous/White.Men.Cant.Jump.1992.UNRATED.1080p.BluRay.x264.anoXmous_.mp4
/home/drew/share/films/Planet.Of.The.Apes.1968.1080p.BluRay.H264.AAC-RARBG/Planet.Of.The.Apes.1968.1080p.BluRay.H264.AAC-RARBG.mp4
/home/drew/share/films/Hackers/Hackers.1995.mp4
/home/drew/share/films/The.Time.Machine.1960.720p.BluRay.x264.AAC-ETRG/The.Time.Machine.1960.720p.BluRay.x264.AAC-ETRG.mp4
/home/drew/share/films/Please Stand By (2017) [BluRay] [720p] [YTS.AM]/Please.Stand.By.2017.mp4
/home/drew/share/films/1776 (1972)/1776.1972.720p.BluRay.x264.YIFY.mp4
/home/drew/share/films/Please Stand By (2017)/Please.Stand.By.2017.mp4
#!/usr/bin/env bash
#randfile=$(find ~/share/films/ ~/Downloads/ -iname "*.mp4" -o -iname "*.mkv" -o -iname "*.avi" -o -iname "*.mov" | shuf -n 1)
randfile=$(shuf -n 1 /home/drew/bin/movwp_whitelist.txt)
#randfile=$(find ~/share/films/ ~/Downloads/ -iname "*.mp4" -o -iname "*.mkv" -o -iname "*.m4v" -o -iname "*.avi" -o -iname "*.mov" | shuf -n 1)
num=$((1 + RANDOM % 3))
if [ "$num" -le 1 ];then
randfile=$(find ~/Documents/media/tos/ -iname "*.mp4" -o -iname "*.mkv" -o -iname "*.m4v" -o -iname "*.avi" -o -iname "*.mov" | shuf -n 1)
else
randfile=$(shuf -n 1 /home/drew/bin/movwp_whitelist.txt)
fi
echo "$randfile" > /home/drew/Pictures/Wallpapers/movwp.txt
/home/drew/bin/movwp_halftone "$randfile"
......
diff --git a/config.def.h b/config.def.h
index 1c0b587..ae91c17 100644
index 1c0b587..fe6f5ab 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,21 +1,31 @@
......@@ -39,7 +39,7 @@ index 1c0b587..ae91c17 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_white },
+ [SchemeSel] = { col_red, col_dark_grey, col_red },
+};
+static const unsigned int alphas[][3] = {
+ /* fg bg border */
......@@ -108,7 +108,7 @@ index 1c0b587..ae91c17 100644
+static const char *steamcmd[] = { "steam", NULL };
+static const char *discordcmd[] = { "discord", NULL };
+static const char *browsercmd[] = { "firefox", NULL };
+static const char *filemanagercmd[] = { "st", "-e", "nnn", NULL };
+static const char *filemanagercmd[] = { "st", "-e", "nnn", "-R", NULL };
+static const char *colourpickercmd[] = { "gcolor2", NULL };
+static const char *togglecompositorcmd[] = { "togglecompositor", NULL };
+static const char *clipboardcmd[] = { "clipmenu", NULL };
......
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