8 lines
171 B
Bash
Executable file
8 lines
171 B
Bash
Executable file
#!/bin/sh
|
|
[ "$(pgrep -x "$(basename "$0")" | wc -l)" -gt 2 ] && exit
|
|
|
|
sleep 5 && while : ; do
|
|
pgrep -x mpd || exit
|
|
mpc idle > /dev/null
|
|
pkill -RTMIN+11 i3blocks ;
|
|
done
|