You are not logged in.
When I attempt to add battery status to dwm by adding the following to my ~/.xinitrc and start X I get ~100% CPU usage.
while true
do
acpi | awk '{ print $3, $4 }' | sed s/","//g
done | exec dwm
When I uncommented the previous lines and left 'exec dwm' cpu usage returns to normal.
Would you happen to know a reason for the increase in usage?
Last edited by filam (2008-12-30 06:38:42)
Offline
Because it will poll every nanosecond. Put a sleep 10 in there or something
while true
do
acpi | awk '{ print $3, $4 }' | sed s/","//g
sleep 10
done | exec dwm
Offline