2024-05-11 19:17:30 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
workspaces() {
|
|
|
|
hyprctl workspaces -j | jaq -c 'map({key: .id | tostring, value: .windows}) | from_entries
|
|
|
|
| . as $windows | [range(1;11) | {id: tostring, windows: $windows[tostring] // 0,
|
|
|
|
previous: $windows[.-1|tostring] // 0, next: $windows[.+1|tostring] // 0 }]'
|
|
|
|
}
|
|
|
|
|
|
|
|
workspaces
|
2024-08-03 09:49:15 -04:00
|
|
|
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
2024-05-11 19:17:30 -04:00
|
|
|
workspaces
|
|
|
|
done
|