Generate output for lemonbar (https://github.com/LemonBoy/bar)
Each block can have a different refresh delay.
- Battery level
- Local IP
- Date & hour
- Disk space indicator (/ & /home)
- Command line runner
- Create its function :
void foo_task(char *out){
/* out is the output of the block */
}
- Declare the task among others
struct s_task bar_ip, bar_date, bar_acpi, bar_foo;
- Bind task to function and choose options :
set_task( &bar_foo, /* Block struct */
1, /* Inital timer, "1" update the block at start (seconds) */
120, /* Timer before update the block (seconds)*/
update_acpi, /* update function*/
&bar_acpi.str, /* output string */
ACPI_SIZE); /* output string max lenght */
Add this line before main loop :
ENABLE_WIDGET(bar_dspace);