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