Regenerated

This commit is contained in:
2026-04-11 15:15:31 +02:00
parent 4b6ab1a885
commit 29902e9b06
3 changed files with 359 additions and 332 deletions
+333 -324
View File
File diff suppressed because it is too large Load Diff
+13 -4
View File
@@ -3575,12 +3575,21 @@ These are config files for waybar
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hypr-workspaces.sh :noweb yes :mkdirp yes :eval never
#!/usr/bin/env bash
# Get the focused monitor's active workspace
focused_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get the focused monitor name
focused_monitor=$(hyprctl activeworkspace -j | jq -r '.monitor')
# Get clients in focused workspace
# Hide if this bar's monitor is not the focused one
if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
jq -c -n '{text:"", class:"hidden"}'
exit 0
fi
# Get active workspace ID
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get clients in active workspace
clients=$(hyprctl clients -j | jq -r \
".[] | select(.workspace.id==$focused_ws) | \"\(.title)\"")
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
# Count clients (only non-empty lines)
count=$(echo "$clients" | grep -c '\S')
@@ -1,11 +1,20 @@
#!/usr/bin/env bash
# Get the focused monitor's active workspace
focused_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get the focused monitor name
focused_monitor=$(hyprctl activeworkspace -j | jq -r '.monitor')
# Get clients in focused workspace
# Hide if this bar's monitor is not the focused one
if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
jq -c -n '{text:"", class:"hidden"}'
exit 0
fi
# Get active workspace ID
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
# Get clients in active workspace
clients=$(hyprctl clients -j | jq -r \
".[] | select(.workspace.id==$focused_ws) | \"\(.title)\"")
".[] | select(.workspace.id==$active_ws) | \"\(.title)\"")
# Count clients (only non-empty lines)
count=$(echo "$clients" | grep -c '\S')