aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/dwmstatus.sh
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dwmstatus.sh')
-rwxr-xr-x.local/bin/dwmstatus.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dwmstatus.sh b/.local/bin/dwmstatus.sh
index 22dd9bd..89018bb 100755
--- a/.local/bin/dwmstatus.sh
+++ b/.local/bin/dwmstatus.sh
@@ -2,10 +2,10 @@
while true; do
ram="ram $(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2}')"
- cpu="load $(top -n1 | awk 'NR==1{printf "%g", $10}')"
+ cpu="load $(uptime -r | cut -d ' ' -f 4)"
clock="$(date +'%a %b %d, %r')"
- volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | awk 'NR==1{printf "%s", $5}')"
+ volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | cut -d ' ' -f 6)"
+ xsetroot -name " $ram ~ $cpu ~ $volume ~ $clock "
sleep 1
- xsetroot -name " $ram ~ $cpu ~ $volume ~ $clock "
done