Skip to content

Commit

Permalink
made character limit greater so it works better with status2d
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodsman committed May 28, 2024
1 parent e06aef6 commit 9235780
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 27 deletions.
55 changes: 29 additions & 26 deletions config.h
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
//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*/
/* {"⌨", "sb-kbselect", 0, 30}, */
{"", "cat /tmp/recordingicon 2>/dev/null", 0, 9},
{"", "sb-tasks", 10, 26},
{"", "sb-music", 0, 11},
{"", "sb-pacpackages", 0, 8},
{"", "sb-news", 0, 6},
/* {"", "sb-price xmr-btc \"Monero to Bitcoin\" 🔒 25", 9000, 25}, */
/* {"", "sb-price xmr Monero 🔒 24", 9000, 24}, */
/* {"", "sb-price eth Ethereum 🍸 23", 9000, 23}, */
/* {"", "sb-price btc Bitcoin 💰 21", 9000, 21}, */
{"", "sb-torrent", 20, 7},
/* {"", "sb-memory", 10, 14}, */
/* {"", "sb-gpu", 5, 28}, */
/* {"", "sb-cpu", 5, 18}, */
/* {"", "sb-moonphase", 18000, 17}, */
{"", "sb-doppler", 0, 13},
{"", "sb-forecast", 18000, 5},
{"", "sb-mailbox", 180, 12},
/* {"", "sb-nettraf", 1, 16}, */
{"", "sb-volume", 0, 10},
{"", "sb-battery", 5, 3},
{"", "sb-clock", 60, 1},
{"", "sb-internet", 5, 4},
/* {"", "sb-iplocate", 0, 27}, */
/* {"", "sb-help-icon", 0, 15}, */
{"", "cat /tmp/recordingicon 2>/dev/null", 0, 9},
{"", "sb-tasks", 10, 26},
{"", "sb-music", 0, 11},
{"", "sb-bluetooth", 0, 13},
{"", "sb-volume", 0, 10},
{"", "sb-news", 0, 6},
{"", "sb-torrent", 20, 7},
{"", "sb-pacpackages", 0, 8},
{"", "sb-forecast", 18000, 5},
{"", "sb-mailbox", 180, 12},
{"", "sb-battery", 5, 3},
{"", "sb-clock", 60, 1},
{"", "sb-internet", 5, 4},
// {"⌨", "sb-kbselect", 0, 30},
//{"", "sb-status2dtest", 5, 29},
// {"", "sb-nettraf", 1, 16},
// {"", "sb-split", 0, 31},
// {"", "sb-memory", 10, 14},
// {"", "sb-gpu", 5, 28},
// {"", "sb-cpu", 5, 18},
// {"", "sb-moonphase", 18000, 17},
// {"", "sb-doppler", 0, 13},
// {"", "sb-price xmr-btc \"Monero to Bitcoin\" 🔒 25", 9000, 25},
// {"", "sb-price xmr Monero 🔒 24", 9000, 24},
// {"", "sb-price eth Ethereum 🍸 23", 9000, 23},
// {"", "sb-price btc Bitcoin 💰 21", 9000, 21},
// {"", "sb-iplocate", 0, 27},
// {"", "sb-help-icon", 0, 15},
};

//Sets delimiter between status commands. NULL character ('\0') means no delimiter.
static char *delim = " | ";
static char *delim = " ^d^";

// Have dwmblocks automatically recompile and run when you edit this file in
// vim with the following line in your vimrc/init.vim:
Expand Down
2 changes: 1 addition & 1 deletion dwmblocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static Display *dpy;
static int screen;
static Window root;
static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0};
static char statusstr[2][256];
static char statusstr[2][1024];
static int statusContinue = 1;
static int signalFD;
static int timerInterval = -1;
Expand Down

0 comments on commit 9235780

Please sign in to comment.