termbar 547 B

12345678910111213
  1. #!/bin/sh
  2. while true; do
  3. RAM=$(top -b -n 1 | grep "MiB Mem" | awk {'print $6'})
  4. DISK=$(df -h / 2>/dev/null | grep " /" | awk {'print $4'})
  5. DATE=$(date '+%Y-%m-%d %H:%M')
  6. AMIXER=$(amixer sget Master | grep "Front Left:" | awk {'print $5'} | tr -d "[" | tr -d "]")
  7. NWBSSID=$(nmcli device wifi | grep "*" | awk {'print $3'})
  8. NWSIGNAL=$(nmcli device wifi | grep "*" | awk {'print $9'})
  9. echo -en " net: $NWBSSID $NWSIGNAL | disk: $DISK ram: $RAM | vol: $AMIXER | $DATE\r"
  10. sleep 30
  11. done