wpmp4/wpmp4

19 lines
430 B
Bash
Executable File

#!/bin/bash
screenwallpaper() {
xwinwrap -ov -g $1 -- mpv --fullscreen\
--on-all-workspaces \
--no-stop-screensaver \
--loop-file --no-audio --no-osc --no-osd-bar -wid WID --quiet \
"$2" --background="$3" --video-zoom="$4" &
}
killall xwinwrap
sleep 0.5
for i in $( xrandr -q | grep ' connected' | grep -oE '\d+x\d+\+\d+\+\d+')
do
screenwallpaper $i "$1" "${2:-#000000}" "${3:-0}"
done