10 lines
127 B
Bash
Executable file
10 lines
127 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
PIDS=$(pgrep -f "swaybg")
|
|
|
|
swaybg -m fill -i $1 &
|
|
|
|
if [ -n "$PIDS" ]; then
|
|
echo "$PIDS" | xargs kill
|
|
fi
|