nixos-config/home-manager/wayland/eww/scripts/active-window
Kiana Sheibani 264fc1406d
tweak: switch from jaq to jq
`jaq` is not really better than `jq`, and it's more useful to have
the more popular version in my environment.
2025-03-07 21:28:04 -05:00

6 lines
254 B
Bash
Executable file

#!/usr/bin/env bash
hyprctl activewindow -j | jq -c .
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
stdbuf -o0 grep -ose '^activewindow>>' | while read -r line; do
hyprctl activewindow -j | jq -c .
done