From 45b80e8e67a2ea724d6f7317428cccf7ea9db395 Mon Sep 17 00:00:00 2001 From: dx Date: Sat, 6 Jun 2020 19:31:36 +0100 Subject: ~set_bar -> scripts/status/* Decomposed the set_bar monolith script into seperate 'block' scripts --- Scripts/.local/scripts/status/connection | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 Scripts/.local/scripts/status/connection (limited to 'Scripts/.local/scripts/status/connection') diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection new file mode 100755 index 0000000..139fea0 --- /dev/null +++ b/Scripts/.local/scripts/status/connection @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +internet=$(nmcli g | sed -n 2p | awk '{print $1}') +if [[ $internet == "connected" ]] +then + echo "Connected" +else + echo "Not connected" +fi -- cgit v1.2.3-13-gbd6f