dotfiles/.config/eww/scripts/get-activeworkspace-id

7 lines
227 B
Bash
Executable File

#!/bin/bash
hyprctl activeworkspace -j | jq '.id'
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'