terminfo-openbsd 461 B

12345678910
  1. #!/bin/ksh
  2. RAM=$(top -b -n 1 | grep "Memory: " | awk {'print $6'})
  3. disk=$(df -h /home 2>/dev/null | grep '\/home$' | awk {'print $4'})
  4. DATE=$(date '+%Y-%m-%d %H:%M')
  5. AMIXER=$(amixer sget Master | grep "Front Left:" | awk {'print $5'} | tr -d "[" | tr -d "]")
  6. NWBSSID=$(nmcli device wifi | grep "*" | awk {'print $3'})
  7. NWSIGNAL=$(nmcli device wifi | grep "*" | awk {'print $9'})
  8. echo -en "net: $NWBSSID $NWSIGNAL | disk: $DISK ram: $RAM | vol: $AMIXER | $DATE"