💥 fix(eww): run on launch instead of waiting event to trigger

This commit is contained in:
João Dias
2024-11-24 12:34:11 -03:00
parent 002a8a8969
commit 825b57a8f2
2 changed files with 2 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# output current window before event trigger to prevent issues
hyprctl -j activewindow | jq -c
handle() {
case $1 in
activewindow*) hyprctl -j activewindow | jq -c ;;
esac
}
socat -U - UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done