dotfiles/config/polybar/scripts/network/ssh.sh
2023-02-06 17:56:36 -05:00

11 lines
128 B
Bash
Executable File

#! /bin/bash
active_conns=$(netstat -tun | grep -P "tcp.*:22 ")
if [ "$active_conns" = "" ];
then
echo -n
else
echo "#"
fi