10 lines
229 B
Bash
Executable file
10 lines
229 B
Bash
Executable file
#!/usr/bin/env bash
|
|
active (){
|
|
hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
|
|
}
|
|
|
|
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
|
active
|
|
done
|
|
|