diff --git a/waybar/scripts/ssh-session.sh b/waybar/scripts/ssh-session.sh index 87acb8b..73a7a03 100755 --- a/waybar/scripts/ssh-session.sh +++ b/waybar/scripts/ssh-session.sh @@ -8,7 +8,7 @@ if [[ "$1" == "disconnect" ]]; then exit 0 fi -count=$(pgrep -cf 'sshd-session:.*@' 2>/dev/null) +count=$(pgrep -cf '[s]shd-session:.*@' 2>/dev/null) count=${count:-0} if [[ "$count" -gt 0 ]]; then