Fish: move awall to ~/Pictures

This commit is contained in:
Phantop 2020-08-20 23:07:31 -04:00
parent 43f39a7f47
commit f4e3943190
2 changed files with 7 additions and 5 deletions

View File

@ -1,14 +1,15 @@
# Defined in /tmp/fish.XPtG1H/awall.fish @ line 2
function awall function awall
if test $argv if test $argv
rm ~/Videos/.wallp rm ~/Pictures/.wallp
ln -s ~/Videos/Walls/$argv* ~/Videos/.wallp ln -s ~/Pictures/Awall/$argv* ~/Pictures/.wallp
end end
kill (pgrep -f "mpv.*wallpaper") kill (pgrep -f "mpv.*wallpaper")
mpv --profile=wallpaper ~/Videos/.wallp & disown mpv --profile=wallpaper ~/Pictures/.wallp & disown
sleep 5 sleep 5
budgie-panel --replace & disown budgie-panel --replace & disown
if test $argv if test $argv
ffmpeg -i ~/Videos/Walls/$argv* -vframes 1 -y ~/Videos/Walls/wall.png ffmpeg -i ~/Pictures/Awall/$argv* -vframes 1 -y ~/Pictures/Awall/wall.png
wallp ~/Videos/Walls/wall.png wallp ~/Pictures/Awall/wall.png
end end
end end

1
.setup
View File

@ -21,3 +21,4 @@ do
done done
fish -c fisher fish -c fisher
chsh -s /usr/bin/fish