2020-10-13 20:14:57 +00:00
|
|
|
#!/bin/sh
|
2020-08-22 04:14:05 +00:00
|
|
|
if [[ "$#" -ge 1 ]]; then
|
|
|
|
rm ~/Pictures/.wallp
|
|
|
|
ln -s ~/Pictures/Awall/$@* ~/Pictures/.wallp
|
|
|
|
fi
|
2021-01-24 05:49:08 +00:00
|
|
|
pkill -f "mpv.*wallpaper"
|
|
|
|
xwinwrap -ni -fdt -fs -- mpv -wid WID ~/Pictures/.wallp --profile=wallpaper & disown
|
2020-08-22 04:14:05 +00:00
|
|
|
if [[ "$#" -ge 1 ]]; then
|
2021-01-24 05:49:08 +00:00
|
|
|
ffmpeg -i ~/Pictures/.wallp -vframes 1 -y ~/Pictures/Awall/wall.png
|
2020-09-10 21:55:47 +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
|