animated-wallpaper.sh 742 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. # https://github.com/mmhobi7/xwinwrap
  4. # https://github.com/ujjwal96/xwinwrap
  5. default_path_left='/mnt/melchior-3/Pictures/Wallpapers/Video/left*'
  6. default_path_right='/mnt/melchior-3/Pictures/Wallpapers/Video/right*'
  7. killall xwinwrap
  8. sleep 0.3
  9. xwinwrap -g 2560x1440+0+753 -ni -s -nf -b -un -ov -fdt -argb -- mpv --mute=yes --video-aspect-override=16:9 --no-audio --no-osc --no-osd-bar --quiet --screen=0 --geometry=2560x1440+0+753 -wid WID --loop --shuffle $path_left &
  10. xwinwrap -g 1440x2560+2560+0 -ni -s -nf -b -un -ov -fdt -argb -- mpv --mute=yes --panscan=1 --no-audio --no-osc --no-osd-bar --quiet --screen=0 --geometry=1440x2560+2560+0 -wid WID --loop --shuffle $path_right &