Skip to content

Instantly share code, notes, and snippets.

@SubhrajitPrusty
Last active October 24, 2018 20:21
Show Gist options
  • Save SubhrajitPrusty/0c9c89e81bb1e6556fbb85083e47acf1 to your computer and use it in GitHub Desktop.
Save SubhrajitPrusty/0c9c89e81bb1e6556fbb85083e47acf1 to your computer and use it in GitHub Desktop.
Set an animated wallpaper
# use ffmpeg to get images from video
# ffmpeg -i input.mp4 -vf fps=30 ~/gif/giffy%03d.bmp
# gets 30 images per second
# use -ss to skip to time, and -t to set duration
# script is better than standalone command, due to behavior when force quitting
while true; do for i in ~/gif/*.*; do feh --bg-fill $i; done; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment