I wrote some changes in your code in order to add an scrollbar that can be activated adding -s param.
There is a new function called "scroller" which handles the printing text. Inside of this function there are several sleep calls which I think are a good option for save CPU usage.
Also I added two examples for the integration with polybar.
This is my first pull-request, so I wish I didn't make any trouble.
Hi Jvanrhijn,
I wrote some changes in your code in order to add an scrollbar that can be activated adding -s param. There is a new function called "scroller" which handles the printing text. Inside of this function there are several sleep calls which I think are a good option for save CPU usage.
Also I added two examples for the integration with polybar.
This is my first pull-request, so I wish I didn't make any trouble.
Greetings.