1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-27 09:03:17 +00:00

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
if test $argv
rm ~/Videos/.wallp
ln -s ~/Videos/Walls/$argv* ~/Videos/.wallp
rm ~/Pictures/.wallp
ln -s ~/Pictures/Awall/$argv* ~/Pictures/.wallp
end
kill (pgrep -f "mpv.*wallpaper")
mpv --profile=wallpaper ~/Videos/.wallp & disown
mpv --profile=wallpaper ~/Pictures/.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
ffmpeg -i ~/Pictures/Awall/$argv* -vframes 1 -y ~/Pictures/Awall/wall.png
wallp ~/Pictures/Awall/wall.png
end
end

1
.setup
View file

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