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

14 lines
369 B
Bash
Executable File

#!/usr/bin/bash
scripts/overview --row 2
if [ "$1" == "--once" ]; then
exit 0
else
socat -u UNIX-CONNECT:/tmp/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock - | rg --line-buffered "window>>" | while read -r line; do
# This sleep is necessary
# It prevents the script from being faster than hyprctl
sleep 0.025
scripts/overview --row 2
done
fi