Source

shared / bin / popup-notify

Full commit
#!/usr/bin/zsh

TIME=$(date '+%I:%M %p %A')
DATE=$(date '+%Y-%m-%d')
BATT=$(acpi | sed 's/,\s*rate information unavailable//')

NET="$(nmcli -t -f NAME con status | sed 's|AUTO \(.*\)$|\1:|i') $(nmcli -t -f STATE nm)"

MSG=$(echo "$DATE\n\n$NET\n\n$BATT")

notify-send $TIME "$MSG"