masterccc / lemonmaker

Output generator for lemonbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lemonmaker

Generate output for lemonbar (https://github.com/LemonBoy/bar)

Each block can have a different refresh delay.

alt text

Available modules :

  • Battery level
  • Local IP
  • Date & hour
  • Disk space indicator (/ & /home)
  • Command line runner

How to add your own block

  • 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);

About

Output generator for lemonbar

License:GNU General Public License v3.0


Languages

Language:C 96.7%Language:Makefile 3.3%