nixos/common/eww/config/widgets/resources/network.sh

9 lines
122 B
Bash
Executable file

#!/usr/bin/env bash
status=$(nmcli g | grep -oE "disconnected")
if [ $status ] ; then
echo "✘"
else
echo ""
fi