nixos/home/hyprland/ironbar/config/scripts/wlr_window

6 lines
255 B
Plaintext
Raw Normal View History

2023-10-10 20:00:04 +01:00
hyprctl activewindow -j | jq -r '.title'
while :
do
socat -U - UNIX-CONNECT:/tmp/hypr/$(echo $HYPRLAND_INSTANCE_SIGNATURE)/.socket2.sock | while read line; do echo $line | grep -o "activewindow>>.*" | cut -c 15- | sed 's/^.*,//' | tr -d '\*' ; done
done