From 238fb20262a76e3259d2014004cbdadc966d3bb7 Mon Sep 17 00:00:00 2001 From: Phantop Date: Sat, 22 Aug 2020 00:14:05 -0400 Subject: [PATCH] Move awall from fish to bash --- .config/fish/functions/awall.fish | 15 --------------- .local/bin/awall | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 .config/fish/functions/awall.fish create mode 100755 .local/bin/awall 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