From 80cf21dcf44e13e711fdf232da5ac95b87ad0cd2 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 20 Apr 2021 14:54:11 +0100 Subject: [PATCH] Adds ip addresses to phone status notification --- bin/.bin/notifications/phoneStatus | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/.bin/notifications/phoneStatus b/bin/.bin/notifications/phoneStatus index 97037fed..a698f5b4 100755 --- a/bin/.bin/notifications/phoneStatus +++ b/bin/.bin/notifications/phoneStatus @@ -23,8 +23,10 @@ done notification=" $batteryIcon ${battery}% Time $time +$( ip r | grep -v "default" | awk '{print $3 ": " $9}') $( [ "$missedCallsNo" -gt 0 ] && echo "$missedCallsNo Missed Calls" ) -$( [ "$newTexts" -gt 0 ] && echo "$newTexts New Texts" )" +$( [ "$newTexts" -gt 0 ] && echo "$newTexts New Texts" ) +" notification="$( echo "$notification" | sed '/^$/d' )" notify-send "$(hostname)" "$notification"