Regenerated

This commit is contained in:
2026-04-09 16:24:57 +02:00
parent 61783cd96f
commit 9d8392784c
4 changed files with 331 additions and 349 deletions
@@ -1,25 +1,19 @@
#!/usr/bin/env bash
# Get active workspace ID
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get clients in active workspace
clients=$(hyprctl clients -j | jq -r \
".[] | select(.workspace.id==$active_ws) | .title")
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
# Count clients
count=$(echo "$clients" | grep -c .)
# If less than 2 clients → hide module
if [ "$count" -lt 2 ]; then
jq -c -n '{text:"", class:"hidden"}'
exit 0
# If no clients → hide module
if [ "$count" -eq 0 ]; then
jq -c -n '{text:"", class:"hidden"}'
exit 0
fi
# Build tooltip (newline separated)
tooltip=$(echo "$clients" | sed 's/^/• /' | paste -sd '\n' -)
# Output JSON with dash
# Output JSON
jq -c -n \
--arg text "$count" \
--arg tooltip "$tooltip" \
+1 -1
View File
@@ -101,7 +101,7 @@ window#waybar {
#workspaces button.active {
background: linear-gradient(45deg, @blue, @green);
font-size: 14px;
color: @teal;
color: @base;
}
activeworkspaces:not(.active) {