blob: 3f57ec5f138fe80e081411482eddacbc453e9a46 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
{
hyprctl -j monitors
socat -u UNIX-CONNECT:"$IPC" - | while read -r _
do
case "${_%>>*}" in
workspace|moveworkspace)
hyprctl -j monitors
esac
done
} | jq -cr '[.[] | .activeWorkspace.name]'
|