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:
parent
43f39a7f47
commit
f4e3943190
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue