Refine quickshell bar and Noctalia compatibility

This commit is contained in:
Ryan Hughes
2026-05-14 02:21:48 -04:00
parent 5086654d51
commit 7d2745b6a6
28 changed files with 1096 additions and 699 deletions
+16 -5
View File
@@ -2,12 +2,23 @@
# omarchy:summary=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}'
coproc VOXTYPE_STATUS { voxtype status --follow --extended --format json; }
voxtype_pid=$VOXTYPE_STATUS_PID
cleanup() {
kill "$voxtype_pid" 2>/dev/null || true
}
trap cleanup EXIT INT TERM
while IFS= read -r line <&"${VOXTYPE_STATUS[0]}"; do
if omarchy-cmd-present jq; then
jq -c '. + {alt: (.class // "")}' <<<"$line" || printf '%s\n' "$line"
else
printf '%s\n' "$line"
fi
done
else
echo '{"alt": "", "tooltip": ""}'
echo '{"alt": "", "class": "idle", "tooltip": ""}'
fi