fix pgrep and pkill (#687)

This commit is contained in:
Maximiliano Guzenski 2025-08-12 08:01:45 -03:00 committed by GitHub
parent bc323ca267
commit 03c6b0af3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,9 +7,9 @@ if command -v tte &>/dev/null; then
--frame-rate 240 --canvas-width 0 --canvas-height $(($(tput lines) - 2)) --anchor-canvas c --anchor-text c \
"$effect" &
while pgrep tte >/dev/null; do
while pgrep -x tte >/dev/null; do
if read -n 1 -t 0.01; then
pkill tte 2>/dev/null
pkill -x tte 2>/dev/null
pkill -f "alacritty --class Screensaver" 2>/dev/null
exit 0
fi