Regenerated

This commit is contained in:
2026-04-11 15:13:45 +02:00
parent d393b81347
commit 4b6ab1a885
3 changed files with 356 additions and 338 deletions
@@ -1,18 +1,24 @@
#!/usr/bin/env bash
# Get active workspace ID
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get clients in active workspace
# Get the focused monitor's active workspace
focused_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get clients in focused workspace
clients=$(hyprctl clients -j | jq -r \
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
# Count clients
".[] | select(.workspace.id==$focused_ws) | \"\(.title)\"")
# Count clients (only non-empty lines)
count=$(echo "$clients" | grep -c '\S')
# If no clients → hide module
if [ "$count" -eq 0 ]; then
jq -c -n '{text:"", class:"hidden"}'
exit 0
fi
# Build tooltip (newline separated)
# Build tooltip
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
# Output JSON
jq -c -n \
--arg text "$count" \