mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-29 15:55:48 +00:00
Move awall from fish to bash
This commit is contained in:
parent
83f05e1dd1
commit
238fb20262
|
|
@ -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
14
.local/bin/awall
Executable 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
|
||||||
Loading…
Reference in a new issue