`jaq` is not really better than `jq`, and it's more useful to have the more popular version in my environment.
6 lines
254 B
Bash
Executable file
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
|