diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2022-08-27 00:48:30 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2022-08-27 00:48:30 -0400 |
commit | 9671c18ede1c0d12fcbcfe85d553131bb3b9c90b (patch) | |
tree | f237d957f9725d7e756b4dfa9df1dff083c276d3 | |
parent | 836e019a007b5092451e84177fceabd8f41a5b0d (diff) |
New blocks and removed delimiterspersonal
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | config.h | 8 | ||||
-rw-r--r-- | dwmblocks.c | 2 |
3 files changed, 8 insertions, 4 deletions
@@ -26,6 +26,8 @@ install: dwmblocks mkdir -p ${DESTDIR}${PREFIX}/bin cp -f dwmblocks ${DESTDIR}${PREFIX}/bin chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks + killall dwmblocks &>/dev/null + su -c "setsid dwmblocks" master uninstall: rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks @@ -1,11 +1,13 @@ //Modify this file to change what commands output to your statusbar, and recompile using the make command. static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ - /* {"", "dwmb-mail", 0, 12}, */ + {"", "dwmb-mail", 0, 12}, /* {"", "dwmb-pacman", 0, 9}, */ /* {"", "dwmb-dotfiles", 0, 7}, */ /* {"", "dwmb-debarque", 0, 17}, */ /* {"", "dwmb-todoist", 0, 5}, */ + {"", "dwmb-cider", 0, 11}, + {"", "dwmb-volume", 0, 9}, {"", "dwmb-rss", 0, 3}, {"", "dwmb-vpn", 0, 2}, {"", "dwmb-layout", 0, 4}, @@ -15,5 +17,5 @@ static const Block blocks[] = { }; //Sets delimiter between status commands. NULL character ('\0') means no delimiter. -static char *delim = "|"; -static unsigned int delimLen = 5; +static char *delim = "\0"; +static unsigned int delimLen = 0; diff --git a/dwmblocks.c b/dwmblocks.c index 9c61ee0..90b982e 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -54,7 +54,7 @@ static void (*writestatus) () = pstdout; static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0}; static char statusstr[2][STATUSLENGTH]; static int statusContinue = 1; -static int returnStatus = 0; +/* static int returnStatus = 0; */ //opens process *cmd and stores output in *output void getcmd(const Block *block, char *output) |