commit - 7cff7a60b13378c722196ac72466c20551fa7b0b
commit + 50f4ade9acdc1d47cf3a692a00265853e15d7869
blob - /dev/null
blob + 020dcb267955d2cffe307684454636b03b95d8ae (mode 755)
--- /dev/null
+++ termbar
+#!/bin/sh
+
+while true; do
+ CPU_SPEED=$(sysctl hw.cpuspeed | cut -d "=" -f 2 | cut -d "." -f 1)
+ CPU_TEMP=$(sysctl hw.sensors.cpu0.temp0 | cut -d "=" -f 2 | cut -d "." -f 1)
+ RAM=$(top | grep Memory | awk {'print $3'})
+ BAT_STATUS=$(sysctl hw.sensors.acpiac0.indicator0 | cut -d "=" -f 2 | cut -d "." -f 1)
+ BAT=$(apm -l)
+ DATE=$(date)
+ NWID=$(ifconfig | grep ieee | awk {'print $3'})
+ IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
+ echo -en " $USER | $DATE | CPU: $CPU_SPEED - $CPU_TEMPĀ° | Ram: $RAM | Bat: $BAT - \
+ $BAT_STATUS | Nwid: $NWID | Public IP: $IP\r"
+ sleep 1
+done