about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-10 23:37:43 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-10 23:37:43 +0200
commitdfe2da53b3be8a6ea4213458a228a6b71786f7b3 (patch)
treed207e801a25c64feb0c8677cec50d5beebba34c7
parentUpdated status bar (diff)
downloaddwm-dfe2da53b3be8a6ea4213458a228a6b71786f7b3.tar.gz
dwm-dfe2da53b3be8a6ea4213458a228a6b71786f7b3.tar.bz2
dwm-dfe2da53b3be8a6ea4213458a228a6b71786f7b3.zip
Updated status bar
-rwxr-xr-xscripts/dwm-status10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status
index 2569053..02aca75 100755
--- a/scripts/dwm-status
+++ b/scripts/dwm-status
@@ -40,6 +40,12 @@ status() { \
 		du -a ~/Mail/*/INBOX/new/* 2>/dev/null | wc -l | sed 's/^/:/'
 		echo "$delim"
 
+	CPU_T=$(< /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp2_input)
+	CPU_TEMP=$(expr "$CPU_T" / 1000)
+	echo "$CPU_TEMP°C"
+
+	echo "$delim"
+
 	# Will show all batteries with approximate icon for remaining power.
 	for x in /sys/class/power_supply/BAT?/capacity;
 	do
@@ -52,8 +58,8 @@ status() { \
 	esac
 	done && echo "$delim"
 
-	# Date and time.
-	date '+%Y %b %d (%a) %I:%M%p'
+	# Date and time. FORMAT CORRECT NO PM
+	echo " $(date '+%Y %b %d (%a) %I:%M%p')"
 	}
 
 while :; do