terminfo-arch 450 B

12345678910
  1. #!/bin/sh
  2. RAM=$(top -b -n 1 | grep "MiB Mem" | awk '{print $6}')
  3. disk=$(df -h / 2>/dev/null | grep " /" | 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"