diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-03-01 07:01:56 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-03-01 07:01:56 -0500 |
commit | b9e29ebe901e41e777aaa4be00b808ca655697cf (patch) | |
tree | 25c68409d91f38a43594d61f897cf5f3c343b68a /dwmblocks.c | |
parent | 6bd2e845be1f4efe089ec3f4d0fea82c93a515bb (diff) | |
download | dwmblocks-b9e29ebe901e41e777aaa4be00b808ca655697cf.tar.gz dwmblocks-b9e29ebe901e41e777aaa4be00b808ca655697cf.tar.bz2 dwmblocks-b9e29ebe901e41e777aaa4be00b808ca655697cf.zip |
blocks.h moved to config.h
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index 2db3489..3b80dbc 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -25,7 +25,7 @@ void sighandler(int signum); void termhandler(int signum); -#include "blocks.h" +#include "config.h" static Display *dpy; static int screen; @@ -69,7 +69,7 @@ void getcmds(int time) { const Block* current; for(int i = 0; i < LENGTH(blocks); i++) - { + { current = blocks + i; if ((current->interval != 0 && time % current->interval == 0) || time == -1) getcmd(current,statusbar[i]); @@ -90,7 +90,7 @@ void getsigcmds(int signal) void setupsignals() { for(int i = 0; i < LENGTH(blocks); i++) - { + { if (blocks[i].signal > 0) signal(SIGRTMIN+blocks[i].signal, sighandler); } @@ -101,7 +101,7 @@ void getstatus(char *str) { int j = 0; for(int i = 0; i < LENGTH(blocks); j+=strlen(statusbar[i++])) - { + { strcpy(str + j, statusbar[i]); } str[--j] = '\0'; @@ -157,7 +157,7 @@ void termhandler(int signum) int main(int argc, char** argv) { for(int i = 0; i < argc; i++) - { + { if (!strcmp("-d",argv[i])) delim = argv[++i][0]; } |