From 03c6b0af3dc321b3507edd6d81a17869acd8cd18 Mon Sep 17 00:00:00 2001 From: Maximiliano Guzenski Date: Tue, 12 Aug 2025 08:01:45 -0300 Subject: [PATCH] fix pgrep and pkill (#687) --- bin/omarchy-cmd-screensaver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-cmd-screensaver b/bin/omarchy-cmd-screensaver index 65bbce2f..c9f3c21a 100755 --- a/bin/omarchy-cmd-screensaver +++ b/bin/omarchy-cmd-screensaver @@ -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