Regenerated
This commit is contained in:
1 parent
09418b51d4
commit
c6b65030b4
3 files changed
+309
-309
No files matched your search
+303
-303
File diff suppressed because it is too large.
Load diff
+3
-3
@@ -3312,11 +3312,11 @@ active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
|||||||
# Count clients in the active workspace
|
# Count clients in the active workspace
|
||||||
clients=$(hyprctl -j clients | jq --argjson w "$active_ws" '[.[] | select(.workspace.id==$w)] | length')
|
clients=$(hyprctl -j clients | jq --argjson w "$active_ws" '[.[] | select(.workspace.id==$w)] | length')
|
||||||
|
|
||||||
# Output for Waybar
|
# Output valid JSON for Waybar
|
||||||
if [ "$clients" -eq 0 ]; then
|
if [ "$clients" -eq 0 ]; then
|
||||||
echo "$active_ws"
|
echo "{\"text\":\"$active_ws\"}"
|
||||||
else
|
else
|
||||||
echo "$active_ws ($clients)"
|
echo "{\"text\":\"$active_ws ★ $clients\"}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
|||||||
# Count clients in the active workspace
|
# Count clients in the active workspace
|
||||||
clients=$(hyprctl -j clients | jq --argjson w "$active_ws" '[.[] | select(.workspace.id==$w)] | length')
|
clients=$(hyprctl -j clients | jq --argjson w "$active_ws" '[.[] | select(.workspace.id==$w)] | length')
|
||||||
|
|
||||||
# Output for Waybar
|
# Output valid JSON for Waybar
|
||||||
if [ "$clients" -eq 0 ]; then
|
if [ "$clients" -eq 0 ]; then
|
||||||
echo "$active_ws"
|
echo "{\"text\":\"$active_ws\"}"
|
||||||
else
|
else
|
||||||
echo "$active_ws ($clients)"
|
echo "{\"text\":\"$active_ws ★ $clients\"}"
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user