Regenerated
This commit is contained in:
+309
-316
File diff suppressed because it is too large
Load Diff
+1
-8
@@ -2691,17 +2691,10 @@ These are config files for waybar
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"hyprland/workspaces",
|
||||
"custom/workspaces-separator",
|
||||
"custom/windows"
|
||||
]
|
||||
},
|
||||
|
||||
"custom/workspaces-separator": {
|
||||
|
||||
"format": " - ",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
/*******************************************************************/
|
||||
"group/hardware": {
|
||||
"orientation": "horizontal",
|
||||
@@ -3062,7 +3055,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"}'
|
||||
|
||||
@@ -29,17 +29,10 @@
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"hyprland/workspaces",
|
||||
"custom/workspaces-separator",
|
||||
"custom/windows"
|
||||
]
|
||||
},
|
||||
|
||||
"custom/workspaces-separator": {
|
||||
|
||||
"format": " - ",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
/*******************************************************************/
|
||||
"group/hardware": {
|
||||
"orientation": "horizontal",
|
||||
|
||||
@@ -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