Regenerated
This commit is contained in:
+331
-323
File diff suppressed because it is too large
Load Diff
+11
-3
@@ -3575,8 +3575,14 @@ These are config files for waybar
|
|||||||
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hypr-workspaces.sh :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/hypr-workspaces.sh :noweb yes :mkdirp yes :eval never
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Debug: log what waybar passes
|
||||||
|
echo "WAYBAR_OUTPUT=$WAYBAR_OUTPUT" >> /tmp/waybar-debug.log
|
||||||
|
|
||||||
|
focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .name')
|
||||||
|
echo "focused_monitor=$focused_monitor" >> /tmp/waybar-debug.log
|
||||||
|
|
||||||
# Get the focused monitor name
|
# Get the focused monitor name
|
||||||
focused_monitor=$(hyprctl activeworkspace -j | jq -r '.monitor')
|
focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .name')
|
||||||
|
|
||||||
# Hide if this bar's monitor is not the focused one
|
# Hide if this bar's monitor is not the focused one
|
||||||
if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
|
if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
|
||||||
@@ -3584,8 +3590,9 @@ if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get active workspace ID
|
# Get active workspace ID on this monitor
|
||||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
active_ws=$(hyprctl monitors -j | jq -r \
|
||||||
|
".[] | select(.name==\"$WAYBAR_OUTPUT\") | .activeWorkspace.id")
|
||||||
|
|
||||||
# Get clients in active workspace
|
# Get clients in active workspace
|
||||||
clients=$(hyprctl clients -j | jq -r \
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
@@ -3609,6 +3616,7 @@ jq -c -n \
|
|||||||
--arg tooltip "$tooltip" \
|
--arg tooltip "$tooltip" \
|
||||||
--arg class "active" \
|
--arg class "active" \
|
||||||
'{text:$text, tooltip:$tooltip, class:$class}'
|
'{text:$text, tooltip:$tooltip, class:$class}'
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/.config/waybar/scripts/hypr-workspacesmenu.sh=
|
** =generated/.config/waybar/scripts/hypr-workspacesmenu.sh=
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Debug: log what waybar passes
|
||||||
|
echo "WAYBAR_OUTPUT=$WAYBAR_OUTPUT" >> /tmp/waybar-debug.log
|
||||||
|
|
||||||
|
focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .name')
|
||||||
|
echo "focused_monitor=$focused_monitor" >> /tmp/waybar-debug.log
|
||||||
|
|
||||||
# Get the focused monitor name
|
# Get the focused monitor name
|
||||||
focused_monitor=$(hyprctl activeworkspace -j | jq -r '.monitor')
|
focused_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused==true) | .name')
|
||||||
|
|
||||||
# Hide if this bar's monitor is not the focused one
|
# Hide if this bar's monitor is not the focused one
|
||||||
if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
|
if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
|
||||||
@@ -9,8 +15,9 @@ if [ "$WAYBAR_OUTPUT" != "$focused_monitor" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get active workspace ID
|
# Get active workspace ID on this monitor
|
||||||
active_ws=$(hyprctl activeworkspace -j | jq -r '.id')
|
active_ws=$(hyprctl monitors -j | jq -r \
|
||||||
|
".[] | select(.name==\"$WAYBAR_OUTPUT\") | .activeWorkspace.id")
|
||||||
|
|
||||||
# Get clients in active workspace
|
# Get clients in active workspace
|
||||||
clients=$(hyprctl clients -j | jq -r \
|
clients=$(hyprctl clients -j | jq -r \
|
||||||
|
|||||||
Reference in New Issue
Block a user