Regenerated
This commit is contained in:
1 parent
ab27118931
commit
6eb0c25729
4 files changed
+311
-332
No files matched your search
@@ -5,7 +5,7 @@ active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||
clients=$(hyprctl clients -j | jq -r \
|
||||
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
|
||||
# Count clients
|
||||
count=$(echo "$clients" | grep -c .)
|
||||
count=$(echo "-$clients" | grep -c .)
|
||||
# If no clients → hide module
|
||||
if [ "$count" -eq 0 ]; then
|
||||
jq -c -n '{text:"", class:"hidden"}'
|
||||
|
||||
Reference in new issue
Block a user