diff --git a/status-bar b/status-bar index a81c7a9..cfab110 100755 --- a/status-bar +++ b/status-bar @@ -28,7 +28,7 @@ DT_SYM='' DT_FMT='%a %d %I:%M%p' status_cpu() { - ps -ef | awk '{cpu = cpu + $4} END {print cpu "%"}' + ps --no-headers -eo %cpu | awk '{cpu = cpu + $1} END {print cpu}' } status_mem() {