diff options
Diffstat (limited to 'status')
| -rwxr-xr-x | status | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -26,14 +26,16 @@ else | |||
| 26 | battery="No battery" | 26 | battery="No battery" |
| 27 | fi | 27 | fi |
| 28 | 28 | ||
| 29 | #network=$(nmcli device status | head -n 2 | tail -n 1 | awk '{print "Network: " $4}') | ||
| 30 | # NetworkManager has a dreadful command line interface | 29 | # NetworkManager has a dreadful command line interface |
| 31 | # It makes cry every time | 30 | # It makes cry every time |
| 32 | # pls help | 31 | # pls help |
| 33 | network="Network: $(nmcli device status | head -n 2 | tail -n 1 | sed 's/ *$//' | sed 's/.* //')" | 32 | nwline="$(nmcli device status | head -n 2 | tail -n 1)" |
| 33 | nwclean="$(echo "$nwline" | sed 's/ *$//' | sed 's/.* //')" | ||
| 34 | network="Network: $nwclean" | ||
| 34 | 35 | ||
| 35 | events=$(sdep-list past | wc -l) | 36 | noticount=$(notify show | wc -l) |
| 36 | 37 | ||
| 37 | printf "$network$sep$volume$sep$battery$sep$date$sep$time" | 38 | printf "$network$sep$volume$sep$battery$sep$date$sep$time" |
| 38 | [ "$events" != "0" ] && printf "$sep$events TODO task(s)" | 39 | [ "$noticount" = "1" ] && printf "$sep$(notify show)" |
| 40 | [ "$noticount" -gt "1" ] && printf "${sep}Unread notifications: $noticount" | ||
| 39 | printf "\n" | 41 | printf "\n" |
