From 56919b86e5e8612e3cf432eb5b9a110f4526f0eb Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Thu, 19 Jan 2023 19:13:38 -0500 Subject: added some scripts and redshift --- .local/bin/internet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/internet') diff --git a/.local/bin/internet b/.local/bin/internet index 70e48ec..942eefe 100755 --- a/.local/bin/internet +++ b/.local/bin/internet @@ -2,9 +2,9 @@ [ "$(connmanctl services | grep "Wired" | awk -F' ' '{print $2}')" = "Wired" ] && CONNECTION="Wired" || CONNECTION="$(connmanctl services | grep '*' | awk -F' ' '{print $2}')" -[ "$CONNECTION" = "Wired" ] && IP="$(ip address | grep dynamic | grep 192.168.)" || IP="$(ip address | grep wlo | grep 192.168. )" +[ "$CONNECTION" = "Wired" ] && IP="$(ip address | grep eth0 | grep 192.168.)" || IP="$(ip address | grep wlo | grep 192.168. )" IP="${IP%/*}" IP="${IP##* }" -printf $CONNECTION +echo $CONNECTION $IP -- cgit v1.2.3