Skip to content

Play dynamic wallpapers in i3wm (using XWinWrap and MPV) [re-written with multiple monitors in mind]

License

Notifications You must be signed in to change notification settings

OposDev/i3_wallpaper_multi-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

i3-video-wallpaper

Play dynamic wallpapers in i3wm (using XWinWrap and MPV).

  • Support pausing the video when a window other than the desktop is focused
  • Multi-monitor support
  • Set FPS for videos

Dependencies

  • xwinwrap
  • xdotool
  • mpv

Optional Dependencies

  • ffmpeg (to generate thumbnail)
  • feh (to set wallpaper)
  • imagemagick (to blur the generated thumbnail)

Basic Usage

./setup.sh [-a false] [-r] [-m] [-p] [-n false] [-w false] [-b false] [-g 16x16] [-f center] [-d $HOME/Pictures/i3-video-wallpaper] [-t 00:00:01] [-h]

Parameters

$ ./setup.sh -h
Options:
        -a: Always run video wallpaper. (Default: false)
        -r: Path to video 1.
        -m: Path to video 2.
        -p: Path to video 3.
        -s: FPS (Default 40).
        -n: Generate a thumbnail by using ffmpeg. It can fix the background of system tray if you use the built-in system tray of Polybar. (Default: false)
        -w: Set the generated thumbnail as wallpaper by using feh. It can fix the background of system tray if you use the built-in system tray of Polybar. (Default: false)
        -b: Blur the thumbnail. It may be useful if your compositor does not blur the background of the built-in system tray of Polybar. (Default: false)
        -g: Parameter which is passed to "convert -blur [parameter]". (Default: 16x16)
        -f: Parameter which is passed to "feh --bg-[paramater]". Available options: center|fill|max|scale|tile (Default: center)
        -d: Where the thumbnails is stored. (Default: $HOME/Pictures/i3-video-wallpaper)
        -t: The time to generate the thumbnail. (Default: 00:00:01) 
        -h: Display this text.

Edit number of monitors

  • Add/remove getopts args.
  • Edit line 135 depending on number of monitors.

License

MIT

References

About

Play dynamic wallpapers in i3wm (using XWinWrap and MPV) [re-written with multiple monitors in mind]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%