Regenerated

This commit is contained in:
2026-04-11 15:21:23 +02:00
parent 29902e9b06
commit 78a635b865
3 changed files with 352 additions and 329 deletions
@@ -1,7 +1,13 @@
#!/usr/bin/env bash
# Debug: log what waybar passes
echo "WAYBAR_OUTPUT=$WAYBAR_OUTPUT" >> /tmp/waybar-debug.log
focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .name')
echo "focused_monitor=$focused_monitor" >> /tmp/waybar-debug.log
# Get the focused monitor name
focused_monitor=$(hyprctl activeworkspace -j | jq -r '.monitor')
focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .name')
# Hide if this bar's monitor is not the focused one
if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
@@ -9,8 +15,9 @@ if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
exit 0
fi
# Get active workspace ID
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get active workspace ID on this monitor
active_ws=$(hyprctl monitors -j | jq -r \
".[] | select(.name==\"$WAYBAR_OUTPUT\") | .activeWorkspace.id")
# Get clients in active workspace
clients=$(hyprctl clients -j | jq -r \