pointfichiers/bar/eww/scripts/hypr/get-window-title

4 lines
196 B
Bash
Executable file

#!/bin/dash
hyprctl activewindow -j | jq --raw-output .title
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'