mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-12-04 10:25:27 -08:00
6 lines
263 B
Bash
Executable file
6 lines
263 B
Bash
Executable file
#!/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}'
|