terminfo-openbsd 403 B

12345678910
  1. #!/bin/ksh
  2. RAM=$(top -b -n 1 | grep "Memory: " | awk '{print $6}')
  3. DISK=$(df -h /home | grep '\/home$' 2>/dev/null | awk '{print $4}')
  4. DATE=$(date '+%Y-%m-%d %H:%M')
  5. AMIXER=$(doas mixerctl outputs.master)
  6. NWID=$(ifconfig iwm0 | grep nwid | awk '{print($3)}')
  7. HOSTNAME_IP=$(ifconfig iwm0 | grep inet | awk '{print($2)}')
  8. echo -en "net: $NWID $HOSTNAME_IP | disk: $DISK ram: $RAM | vol: $AMIXER | $DATE"