From 37189368fbde62f4bbb8d1ecc86f4ec9851c6004 Mon Sep 17 00:00:00 2001 From: Pete Jackson Date: Wed, 22 Apr 2026 06:56:37 -0400 Subject: [PATCH] Clean up orphaned voxtype status processes on exit (#5345) * Clean up orphaned voxtype status processes on exit Waybar's custom/voxtype module runs omarchy-voxtype-status, which spawns a long-lived `voxtype status --follow` child. When Waybar reloads (config change, display hotplug, Hyprland reload), it kills the wrapper but the child survives as an orphan. Over time dozens accumulate. `trap 'kill 0' EXIT` signals the entire process group when the wrapper exits, ensuring the voxtype child is cleaned up. * Explain purpose of trap --------- Co-authored-by: David Heinemeier Hansson --- bin/omarchy-voxtype-status | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/omarchy-voxtype-status b/bin/omarchy-voxtype-status index 039ebca7..acab6f30 100755 --- a/bin/omarchy-voxtype-status +++ b/bin/omarchy-voxtype-status @@ -1,5 +1,8 @@ #!/bin/bash +# Clean up the voxtype --follow child when Waybar reloads +trap 'kill 0' EXIT + if omarchy-cmd-present voxtype; then voxtype status --follow --extended --format json | while read -r line; do echo "$line" | jq -c '. + {alt: .class}'