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

Move awall from fish to bash

This commit is contained in:
Phantop 2020-08-22 00:14:05 -04:00
parent 83f05e1dd1
commit 238fb20262
2 changed files with 14 additions and 15 deletions

View file

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

14
.local/bin/awall Executable file
View file

@ -0,0 +1,14 @@
#!/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
else
sleep 5
fi
budgie-panel --replace & disown