mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 06:35:28 -08:00
7 lines
263 B
Text
7 lines
263 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
|
||
|
|
||
|
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
|
||
|
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'
|