fix(waybar): ssh-session false positive

This commit is contained in:
2026-03-13 14:38:38 +01:00
parent 5a9aec229e
commit 91191722ac

View File

@@ -8,7 +8,7 @@ if [[ "$1" == "disconnect" ]]; then
exit 0 exit 0
fi fi
count=$(pgrep -cf 'sshd-session:.*@' 2>/dev/null) count=$(pgrep -cf '[s]shd-session:.*@' 2>/dev/null)
count=${count:-0} count=${count:-0}
if [[ "$count" -gt 0 ]]; then if [[ "$count" -gt 0 ]]; then