mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Exit loop when acpid is not running
This commit is contained in:
parent
eb2d312d9d
commit
7ce43eef1e
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user