LemonBoy / bar

A featherweight, lemon-scented, bar based on xcb
MIT License
1.61k stars 194 forks source link

High CPU Usage #236

Closed p8952 closed 3 years ago

p8952 commented 3 years ago

Hi,

I'm attempting to use multiple instances of LemonBar to draw some basic graphics to an X11 Display, two 1024x768 squares to be specific. Each instance of LemonBar runs using 100% of CPU, is this expected?

I'm running GNOME 3 on CentOS 7, and invoke LemonBar using the following commands:

lemonbar -d -g 1024x10+100+100 &
lemonbar -d -g 1024x10+100+858 &
lemonbar -d -g 10x768+100+100 &
lemonbar -d -g 10x768+1114+100 &

lemonbar -d -g 1024x10+1224+100 &
lemonbar -d -g 1024x10+1224+858 &
lemonbar -d -g 10x768+1224+100 &
lemonbar -d -g 10x768+2238+100 &
Screenshot 2021-05-29 at 22 38 34
p8952 commented 3 years ago

Apologies, I misunderstood how LemonBar was supposed to work, it's waiting for data from stdin.

echo "" | lemonbar -p -d -g 1024x10+100+100 &
echo "" | lemonbar -p -d -g 1024x10+100+858 &
echo "" | lemonbar -p -d -g 10x768+100+100 &
echo "" | lemonbar -p -d -g 10x768+1114+100 &
echo "" | lemonbar -p -d -g 1024x10+1224+100 &
echo "" | lemonbar -p -d -g 1024x10+1224+858 &
echo "" | lemonbar -p -d -g 10x768+1224+100 &
echo "" | lemonbar -p -d -g 10x768+2238+100 &
Screenshot 2021-05-30 at 00 16 35 Screenshot 2021-05-30 at 00 16 37