commit ece30e20ab77a7ff761cbb909d49dee51105632d from: gonzalo date: Mon May 18 07:30:09 2020 UTC now termbar is inside dotfiles, go there! commit - 61551e4b945048792d05772223c0ac23e276dd32 commit + ece30e20ab77a7ff761cbb909d49dee51105632d blob - 2d518ba628b53b589207ff9954d9924bd36f7eb3 (mode 755) blob + /dev/null --- termbar +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -## colours -ora='\e[0;35m' -rst='\033[0m' - -while true; do - ## cpu - 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 - RAM=$(top | grep Memory | awk {'print $6'}) - ## battery - BAT_STATUS=$(sysctl hw.sensors.acpiac0.indicator0 | cut -d "=" -f 2 | cut -d "." -f 1) - BAT=$(apm -l) - ## day - DATE=$(date +"%B %d - %H:%M") - ## wireless - SSID=$(ifconfig | grep ieee | awk -F'"' '$0=$2') - ## public ip - IP=$(dig +short myip.opendns.com @resolver1.opendns.com | awk {'printf $1'}) - ## printf all the things - printf " $DATE ${ora}|${rst} CPU: $CPU_SPEED ($CPU_TEMPĀ°) ${ora}|${rst} Free Ram: $RAM " - printf "${ora}|${rst} Bat: $BAT - $BAT_STATUS ${ora}|${rst} SSID: $SSID ${ora}|${rst}" - printf " Public IP: $IP \r" - sleep 1 -done