terminfo_short-devuan 422 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. #cpu_temp=$(sensors | grep CPU: | awk {'print $2'})
  5. cpu_temp=$(sensors | grep "Package id 0:" | awk {'print $4'})
  6. batt=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep 'percentage' | awk '{print $2}')
  7. date=$(date '+%Y-%m-%d %H:%M')
  8. echo "T:$cpu_temp D:$disk R:$ram B:$batt | $date"