2022-04-13 21:24:16 +00:00
|
|
|
#!/bin/sh
|
2022-05-19 03:47:32 +00:00
|
|
|
[ "$#" -ge 1 ] && echo ~/Pictures/Awall/"$1"* > ~/Pictures/.wallp
|
2021-01-24 05:49:08 +00:00
|
|
|
pkill -f "mpv.*wallpaper"
|
2022-04-13 21:24:16 +00:00
|
|
|
nohup xwinwrap -ni -fdt -fs -- mpv -wid WID "$(cat ~/Pictures/.wallp)" --profile=wallpaper >/dev/null 2>&1 &
|
|
|
|
if [ "$#" -ge 1 ]; then
|
2022-01-25 16:01:04 +00:00
|
|
|
ffmpeg -i "$(cat ~/Pictures/.wallp)" -vframes 1 -y ~/Pictures/Awall/wall.png
|
2022-05-19 03:47:32 +00:00
|
|
|
mogrify -interpolate Integer -filter point -resize 1920x1080 -gravity center -background black -extent 1920x1080 ~/Pictures/Awall/wall.png
|
2022-01-25 16:01:04 +00:00
|
|
|
gsettings set org.gnome.desktop.background picture-uri file://"$HOME"/Pictures/Awall/wall.png
|
2020-08-22 04:14:05 +00:00
|
|
|
fi
|