From b184782970853b3c479f6c4ad833a36a3aea7afa Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Sun, 10 May 2020 21:13:46 -0400 Subject: mega update --- status.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 status.sh (limited to 'status.sh') diff --git a/status.sh b/status.sh new file mode 100755 index 0000000..aa23534 --- /dev/null +++ b/status.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +date=$(date "+%a %b %d %I:%M %p") +batt=$(acpi -b | awk -F ', ' '{ print $2 }') +disk=$(df -H | awk '{ if ($6 == "/") print $4 }') +#ssid=$(ifconfig | egrep -o '*ssid (.*) ') +#idle=$(top -n | egrep -o '[0-9]+\.[0-9]% idle') +echo "$ssid $idle $disk free | $batt charged | $date" -- cgit v1.2.3