Regenerated

This commit is contained in:
henrov committed 2026-04-02 21:40:21 +02:00
1 parent d37e8c84f2
commit 423ea4d6a1
6 files changed
+332 -318

No files matched your search

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Get active workspace ID
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Count clients in the active workspace
clients=$(hyprctl -j clients | jq --argjson w "$active_ws" '[.[] | select(.workspace.id==$w)] | length')
# Output valid JSON for Waybar
if [ "$clients" -eq 0 ]; then
echo "{\"text\":\"$active_ws\"}"
else
echo "{\"text\":\"$active_ws ★ $clients\"}"
fi