diff --git a/.config/fish/functions/awall.fish b/.config/fish/functions/awall.fish deleted file mode 100644 index bd525e8..0000000 --- a/.config/fish/functions/awall.fish +++ /dev/null @@ -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 diff --git a/.local/bin/awall b/.local/bin/awall new file mode 100755 index 0000000..2263bfa --- /dev/null +++ b/.local/bin/awall @@ -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