about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <you@example.com>2021-11-21 09:51:44 +0000
committerBaitinq <you@example.com>2021-11-21 09:51:44 +0000
commit154acddeb4b63c19beacc6a68248dd02797d9cca (patch)
tree73e26f49d7546c134d98d33c8a922a0b8050ba52
parentUse feh instead of imagemagick (diff)
downloadsmart-wallpaper-154acddeb4b63c19beacc6a68248dd02797d9cca.tar.gz
smart-wallpaper-154acddeb4b63c19beacc6a68248dd02797d9cca.tar.bz2
smart-wallpaper-154acddeb4b63c19beacc6a68248dd02797d9cca.zip
add -r to all xwinwrap commands
-rwxr-xr-xsmart-wallpaper4
1 files changed, 2 insertions, 2 deletions
diff --git a/smart-wallpaper b/smart-wallpaper
index c833f20..5748f64 100755
--- a/smart-wallpaper
+++ b/smart-wallpaper
@@ -53,10 +53,10 @@ set_wallpaper() {
 
     if [ -f /usr/bin/gifview ] && [[ $1 == *".gif" ]]; then
       echo "gifsicle --resize $resolution $delay_flag \$1 | gifview --animate -w \$2" > /tmp/smart-wallpaper-gifcmd
-      nice xwinwrap -ov -ni -s -nf -un -argb -g $resolution -- nice sh /tmp/smart-wallpaper-gifcmd $1 WID &
+      nice xwinwrap -ov -ni -s -nf -un -argb -r -g $resolution -- nice sh /tmp/smart-wallpaper-gifcmd $1 WID &
       procid=$!
     elif [ -f /usr/bin/mpv ] && [[ $1 == *".mp4" ]] || [[ $1 == *".mov" ]] || [[ $1 == *".avi" ]] || [[ $1 == *".mkv" ]]; then
-      nice xwinwrap -ni -ov -ni -s -nf -un -argb -g $resolution -- nice mpv --fullscreen --on-all-workspaces --no-config --no-input-default-bindings --no-stop-screensaver --loop-file --no-audio --no-osc --no-osd-bar -wid WID --quiet $1 &
+      nice xwinwrap -ni -ov -ni -s -nf -un -argb -r -g $resolution -- nice mpv --fullscreen --on-all-workspaces --no-config --no-input-default-bindings --no-stop-screensaver --loop-file --no-audio --no-osc --no-osd-bar -wid WID --quiet $1 &
       procid=$!
     else
       nice xwinwrap -ni -fs -st -sp -nf -ov -s -r -debug -- feh --window-id WID -F --zoom fill -g $resolution $1