dwmblocks

fork of dwmblocks
git clone git://popovic.xyz/dwmblocks.git
Log | Files | Refs | README | LICENSE

commit 998ec98bb69fcb4fd9ee08e6e6501b98c8b3069e
parent c241a5d1eb1b23514282b1b68fbfaaec972f5673
Author: Milutin Popovic <mika@popovic.xyz>
Date:   Wed, 19 Nov 2025 21:08:42 +0000

cleanup

Diffstat:
Mconfig.h | 13++++---------
Ddwmblocks | 0
Mdwmblocks.c | 3+++
Ddwmblocks.o | 0
4 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/config.h b/config.h @@ -2,22 +2,17 @@ static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ {"", "bar-mail", 5, 10 }, + {"", "bar-lang", 0, 11 }, {"", "bar-bluetooth",5, 9 }, {"", "bar-volume", 0, 8 }, {"", "bar-internet", 5, 7 }, {"", "bar-vpn", 10, 6 }, + {"", "bar-battery", 180, 3 }, {"", "bar-mem", 5, 5 }, {"", "bar-cpu", 5, 4 }, - {"", "bar-battery", 180, 3 }, - {"", "bar-weather", 600, 2 }, - {"", "bar-lang", 0, 11 }, {"", "bar-clock", 60, 1 }, + /*{"", "bar-weather", 600, 2 },*/ }; //Sets delimiter between status commands. NULL character ('\0') means no delimiter. -static char *delim = " | "; - -// Have dwmblocks automatically recompile and run when you edit this file in -// vim with the following line in your vimrc/init.vim: - -// autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid dwmblocks & } +static char *delim = " "; diff --git a/dwmblocks b/dwmblocks Binary files differ. diff --git a/dwmblocks.c b/dwmblocks.c @@ -3,6 +3,7 @@ #include<string.h> #include<unistd.h> #include<signal.h> +#include <time.h> #include<X11/Xlib.h> #define LENGTH(X) (sizeof(X) / sizeof (X[0])) #define CMDLENGTH 50 @@ -63,6 +64,8 @@ void remove_all(char *str, char to_remove) { //opens process *cmd and stores output in *output void getcmd(const Block *block, char *output) { + nanosleep((const struct timespec[]){{0, 50000000L}}, NULL); + if (block->signal) { output[0] = block->signal; diff --git a/dwmblocks.o b/dwmblocks.o Binary files differ.