From f181a17466dfd4faa51f091008e7fe4821d10b5b Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 20 Nov 2021 23:30:50 +0000 Subject: Use feh instead of imagemagick --- README.md | 2 +- smart-wallpaper | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5e2eb0a..b5cd1d5 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ You can either clone the repository and run the script or if you are running Arc ### Dependencies Required: redshift - determining if its day/night in your location. - imagemagick - setting the wallpaper. + feh - setting the wallpaper. xwinwrap - drawing on top of the Xorg root bash diff --git a/smart-wallpaper b/smart-wallpaper index 00629a4..c833f20 100755 --- a/smart-wallpaper +++ b/smart-wallpaper @@ -27,7 +27,6 @@ cleanup() { kill $procid fi killall gifview #TODO: gotta kill mpv as well (but not all instances) HELP NEEDED - killall display xsetroot -solid black } @@ -49,7 +48,7 @@ set_wallpaper() { kill $procid fi - killall display + killall xwinwrap killall gifview #TODO: gotta kill mpv as well (but not all instances) HELP NEEDED if [ -f /usr/bin/gifview ] && [[ $1 == *".gif" ]]; then @@ -60,7 +59,7 @@ set_wallpaper() { 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 & procid=$! else - nice xwinwrap -fs -st -sp -nf -ov -s -r -debug -- nice sh -c 'display -flatten -window $0 -resize '$resolution' '$1';sleep infinity' WID & + nice xwinwrap -ni -fs -st -sp -nf -ov -s -r -debug -- feh --window-id WID -F --zoom fill -g $resolution $1 procid=$! fi -- cgit 1.4.1