~set_bar -> scripts/status/*
Decomposed the set_bar monolith script into seperate 'block' scripts
This commit is contained in:
9
Scripts/.local/scripts/status/connection
Executable file
9
Scripts/.local/scripts/status/connection
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user