dotfiles/.config/eww/scripts/get-window-title.sh

4 lines
205 B
Bash
Raw Normal View History

2024-10-21 13:57:40 +02:00
#!/bin/sh
hyprctl activewindow -j | jq --raw-output .title
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'