dotfiles/de/home/.config/eww/scripts/bar/network-status
2025-03-05 21:00:06 -08:00

9 lines
161 B
Bash
Executable file

#!/bin/bash
network_status='false'
if nmcli -g TYPE connection show --active | grep -q "${1}";then
network_status='true'
fi
printf '%s' "${network_status}"