aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/dwmstatus.sh
blob: 89018bbe56f6c1badf2f4a3744b304651f0b691a (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

while true; do
    ram="ram $(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2}')"
    cpu="load $(uptime -r | cut -d ' ' -f 4)"
    clock="$(date +'%a %b %d, %r')"
    volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | cut -d ' ' -f 6)"
    xsetroot -name " $ram ~ $cpu ~ $volume ~ $clock "

    sleep 1
done