Adds ip addresses to phone status notification

Jonathan Hodgson 3 years ago
parent 056611b014
commit 88e3fb3121
  1. 4
      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"

Loading…
Cancel
Save