dots-of-war/eww-laptop/.config/eww/scripts/get-active-workspace

4 lines
224 B
Text
Raw Normal View History

2023-03-16 16:26:29 +00:00
#!/bin/bash
hyprctl monitors -j | jq --raw-output .[0].activeWorkspace.id
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 grep '^workspace>>' | stdbuf -o0 awk -F '>>|,' '{print $2}'