1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-09 00:14:53 +00:00
dotfiles/.local/bin/awall

15 lines
450 B
Plaintext
Raw Normal View History

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
kill $(pgrep -f "mpv.*wallpaper")
mpv --profile=wallpaper ~/Pictures/.wallp & disown
if [[ "$#" -ge 1 ]]; then
ffmpeg -i ~/Pictures/Awall/$@* -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
else
sleep 5
fi
budgie-panel --replace & disown