1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-04 12:34:49 +00:00
dotfiles/.config/fish/functions/awall.fish

15 lines
404 B
Fish

function awall
if test $argv
rm ~/Videos/.wallp
ln -s ~/Videos/Walls/$argv* ~/Videos/.wallp
end
kill (pgrep -f "mpv.*wallpaper")
mpv --profile=wallpaper ~/Videos/.wallp & disown
sleep 5
budgie-panel --replace & disown
if test $argv
ffmpeg -i ~/Videos/Walls/$argv* -vframes 1 -y ~/Videos/Walls/wall.png
wallp ~/Videos/Walls/wall.png
end
end