summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/active-workspace-listener
blob: 8a098975e4b28bd2b6eb25daabfc7e123b991e2e (plain) (blame)
1
2
3
4
5
6
#!/bin/sh

readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock

hyprctl -j activeworkspace | jq -r '.name'
socat -u UNIX-CONNECT:"$IPC" - | sed -n 's/^workspace>>//p'