add script

This commit is contained in:
Linux User 2022-08-19 14:53:50 +00:00
parent 52317820bb
commit 84c8594f88
1 changed files with 18 additions and 0 deletions

18
wpmp4 Executable file
View File

@ -0,0 +1,18 @@
#!/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