Regenerated
This commit is contained in:
+321
-321
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -3580,7 +3580,7 @@ active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
|||||||
clients=$(hyprctl clients -j | jq -r \
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||||
# Count clients
|
# Count clients
|
||||||
count=$(echo "$clients" | grep -c .)
|
count=$(echo "$clients" | grep -c '\S')
|
||||||
# If no clients → hide module
|
# If no clients → hide module
|
||||||
if [ "$count" -eq 0 ]; then
|
if [ "$count" -eq 0 ]; then
|
||||||
jq -c -n '{text:"", class:"hidden"}'
|
jq -c -n '{text:"", class:"hidden"}'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
|||||||
clients=$(hyprctl clients -j | jq -r \
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||||
# Count clients
|
# Count clients
|
||||||
count=$(echo "$clients" | grep -c .)
|
count=$(echo "$clients" | grep -c '\S')
|
||||||
# If no clients → hide module
|
# If no clients → hide module
|
||||||
if [ "$count" -eq 0 ]; then
|
if [ "$count" -eq 0 ]; then
|
||||||
jq -c -n '{text:"", class:"hidden"}'
|
jq -c -n '{text:"", class:"hidden"}'
|
||||||
|
|||||||
Reference in New Issue
Block a user