Files
illogical-impulse/lineage/.config/eww/scripts/activewin
T
2024-02-22 15:35:06 +07:00

18 lines
335 B
Bash
Executable File

#!/usr/bin/bash
getactivewin(){
winname=$(hyprctl activewindow | grep -e 'title: ' | sed 's/title: //' | sed 's/\t//')
echo "$winname"
}
getactivewin
if [ "$1" == "--once" ]; then
exit 0
else
socat -u UNIX-CONNECT:/tmp/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock - | while read -r line; do
getactivewin
done
fi