Как предложил пользователь B Layer в своем комментарии, вы можете указать имя поля с помощью nmcli
.
Я думаю, наиболее подходящим полем в вашем случае являетсяGENERAL.STATE
:
nmcli -f GENERAL.STATE con show {connection_name}
Для моего текущего соединения это дает:
GENERAL.STATE: activated
Чтобы получить значок обновления, установите пакетpackage-update-indicator
на любой рабочий стол.
Описание:
Notify about available software updates
This small utility which regularly checks for software updates and
notifies the user about available updates using desktop notifications
and either a status notifier icon or a system tray icon.
It is primarily intended for desktops which do not already have this
functionality built-in, such as Xfce.