mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-24 07:42:54 +00:00
16 lines
488 B
Bash
Executable file
16 lines
488 B
Bash
Executable file
#!/bin/bash
|
|
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
|
|
wallp ~/Pictures/Awall/wall.png
|
|
gsettings set org.gnome.desktop.background picture-uri "file://$HOME/Pictures/Awall/wall.png"
|
|
else
|
|
sleep 5
|
|
fi
|
|
budgie-panel --replace & disown
|