fix wall-change not exiting after changing the wallpaper

This commit is contained in:
Sleeyax 2024-05-25 01:31:48 +02:00
parent 89a27c5d15
commit 00bb0413fb
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
PIDS=$(pgrep -f "swaybg")
swaybg -m fill -i $1 &
if [ -n "$PIDS" ]; then
echo "$PIDS" | xargs kill
fi