Exit loop when acpid is not running

This commit is contained in:
appeasementPolitik 2023-04-23 14:55:47 +00:00 committed by GitHub
parent eb2d312d9d
commit 7ce43eef1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,6 @@
# headphones are added or removed. # headphones are added or removed.
while :; do while :; do
grep -qP -m1 '^jack\/headphone' <(acpi_listen) grep -qP -m1 '^jack\/headphone' <(acpi_listen) || exit 1
pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}"
done done