all repos — slstatus @ 5295629c4fe987ee51fcfdd380c86e3e0d5de5b5

my build of slstatus (tools.suckless.org/slstatus/)

add update_interval

add a short sleep to reduce load
Daniel Walter d.walter@0x90.at
Thu, 10 Mar 2016 11:55:42 +0100
commit

5295629c4fe987ee51fcfdd380c86e3e0d5de5b5

parent

410ba38a0160da8cbcc81dddd704ae9c7f6d15e2

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M config.def.hconfig.def.h

@@ -17,6 +17,9 @@

/* time */ static const char timeformat[] = "%y-%m-%d %H:%M:%S"; +/* bar update interval in seconds */ +static unsigned int update_interval = 10; + /* statusbar Possible arguments: - battery (battery percentage)
M slstatus.cslstatus.c

@@ -343,6 +343,7 @@ free(datetime);

free(ram_usage); free(volume); free(wifi_signal); + sleep(update_interval); } /* close display */