nixos-config/home-manager/wayland/eww/scripts/active-window

7 lines
256 B
Plaintext
Raw Normal View History

2024-05-11 19:17:30 -04:00
#!/usr/bin/env bash
hyprctl activewindow -j | jaq -c .
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
2024-05-11 19:17:30 -04:00
stdbuf -o0 grep -ose '^activewindow>>' | while read -r line; do
hyprctl activewindow -j | jaq -c .
done