Commit e68bf501 authored by uoou's avatar uoou

timer for random movie wallpaper

parent 56f6ae2c
......@@ -20,4 +20,4 @@ if [ "$seconds" -le 0 ];then
fi
randpoint=$((1 + RANDOM % "$seconds"))
ffmpeg -ss "$randpoint" -i "$1" -vframes 1 "$location" -y >> /dev/null 2>&1 &&
feh --bg-fill "$location" &
feh --bg-fill "$location"
#!/usr/bin/env bash
randfile=$(find ~/share/films/ ~/Downloads/ -iname "*.mp4" -o -iname "*.mkv" -o -iname "*.avi" -o -iname "*.mov" | shuf | head -n1)
echo "$randfile" > /home/drew/Pictures/Wallpapers/movwp.txt
/home/drew/bin/movwp "$randfile"
[Unit]
Description=Pulls a new wallpaper from a movie file
RefuseManualStart=no
[Service]
Type=oneshot
ExecStart=/home/drew/bin/randmovwp
[Unit]
Description=Run rwallp.service every hour
[Timer]
OnActiveSec=1h
OnUnitActiveSec=1h
Unit=rwallp.service
[Install]
WantedBy=timers.target
/home/drew/.config/systemd/user/rmovwallp.timer
\ No newline at end of file
......@@ -27,7 +27,8 @@ export PROTON_FORCE_LARGE_ADDRESS_AWARE=1
# tiler stuff
#urxvtd -q -o -f
#hsetroot -solid "#222"
feh --bg-fill ~/Pictures/Wallpapers/godzilla-site_scaled.jpg
#feh --bg-fill ~/Pictures/Wallpapers/godzilla-site_scaled.jpg
randmovwp &
picom -b
clipmenud &
#sxhkd &
......
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