punktdateien/eww/scripts/get-window-title.sh
2023-12-08 17:33:11 +01:00

3 lines
No EOL
196 B
Bash
Executable file

#!/bin/bash
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}'