diff options
Diffstat (limited to 'scripts/dwm-status')
-rwxr-xr-x | scripts/dwm-status | 10 |
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 |