Score:0

Lemonbar uses lots of cpu

gb flag

My script for lemonbar works just fine but uses lots of cpu. I know it's due to the sleep command:

while true; do
    echo -e "\
    %{l}$(Uptime) $(Window) \
    %{c}$(Mpc) \
    %{r}$(Wifi) $(Cpu) $(Memory) $(Battery) $(Volume) $(Time)"
    sleep 0.1
done

But if I use a greater number then the bar is not as reactive to updates. Is there another way around this? My 4 cpu cores seems to reach 24% when using sleep 0.1. Thanks.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.