nixos/home-manager/modules/eww/config/scripts/get-workspaces
Nickolaj Jepsen d68c699a7a test
2024-08-28 16:08:36 +00:00

10 lines
No EOL
234 B
Bash
Executable file

#!/bin/bash
spaces (){
hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .}) | from_entries' -Mc
}
spaces
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
spaces
done