add script
This commit is contained in:
parent
52317820bb
commit
84c8594f88
|
@ -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
|
Loading…
Reference in New Issue