summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2022-08-27 00:48:30 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2022-08-27 00:48:30 -0400
commit9671c18ede1c0d12fcbcfe85d553131bb3b9c90b (patch)
treef237d957f9725d7e756b4dfa9df1dff083c276d3
parent836e019a007b5092451e84177fceabd8f41a5b0d (diff)
New blocks and removed delimiterspersonal
-rw-r--r--Makefile2
-rw-r--r--config.h8
-rw-r--r--dwmblocks.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8462e0b..04bc7d5 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/config.h b/config.h
index dbb5a60..4cc0ced 100644
--- a/config.h
+++ b/config.h
@@ -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)