dotfiles/.config/eww/scripts/get-workspaces.sh

7 lines
269 B
Bash
Raw Normal View History

2024-10-21 11:14:08 +02:00
#!/usr/bin/env bash
2024-10-21 16:51:01 +02:00
hyprctl workspaces -j | jq -c '[.[].id] | sort | map(tostring)'
2024-10-21 11:14:08 +02:00
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
2024-10-21 16:51:01 +02:00
hyprctl workspaces -j | jq -c '[.[].id] | sort | map(tostring)'
2024-10-21 11:14:08 +02:00
done