Merge branch 'master' of git.eidelpes.info:zenon/dwmblocks

This commit is contained in:
Tobias Eidelpes 2021-07-19 11:53:54 +02:00
commit abf2aa762d
2 changed files with 24 additions and 26 deletions

View File

@ -1,34 +1,32 @@
//Modify this file to change what commands output to your statusbar, and recompile using the make command. //Modify this file to change what commands output to your statusbar, and recompile using the make command.
static const Block blocks[] = { static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
/* {"⌨", "sb-kbselect", 0, 30}, */ /* {"", "cat /tmp/recordingicon 2>/dev/null", 0, 9}, */
{"", "cat /tmp/recordingicon 2>/dev/null", 0, 9}, {"", "music", 0, 11},
{"", "sb-tasks", 10, 26}, /* {"", "pacpackages", 0, 8}, */
{"", "sb-music", 0, 11}, {"", "news", 0, 6},
{"", "sb-pacpackages", 0, 8}, /* {"", "crypto", 0, 13}, */
{"", "sb-news", 0, 6}, /* {"", "price bat \"Basic Attention Token\" 🦁", 0, 20}, */
/* {"", "sb-price lbc \"LBRY Token\" 📚", 9000, 22}, */ /* {"", "price btc Bitcoin 💰", 0, 21}, */
/* {"", "sb-price bat \"Basic Attention Token\" 🦁", 9000, 20}, */ /* {"", "price lbc \"LBRY Token\" 📚", 0, 22}, */
/* {"", "sb-price link \"Chainlink\" 🔗", 300, 25}, */ /* {"", "torrent", 20, 7}, */
/* {"", "sb-price xmr \"Monero\" 🔒", 9000, 24}, */ {"", "memory", 10, 14},
/* {"", "sb-price eth Ethereum 🍸", 9000, 23}, */ {"", "cpu", 10, 18},
/* {"", "sb-price btc Bitcoin 💰", 9000, 21}, */ {"", "disk", 10, 19},
{"", "sb-torrent", 20, 7}, {"", "moonphase", 18000, 17},
/* {"", "sb-memory", 10, 14}, */ /* {"", "weather", 18000, 5}, */
/* {"", "sb-cpu", 10, 18}, */ /* {"", "mailbox", 180, 12}, */
/* {"", "sb-moonphase", 18000, 17}, */ {"", "nettraf", 1, 16},
{"", "sb-forecast", 18000, 5}, {"", "iplocate", 0, 12},
{"", "sb-mailbox", 180, 12}, {"", "volume", 0, 10},
{"", "sb-nettraf", 1, 16}, /* {"", "battery", 5, 3}, */
{"", "sb-volume", 0, 10}, {"", "clock", 1, 1},
{"", "sb-battery", 5, 3}, /* {"", "internet", 5, 4}, */
{"", "sb-clock", 60, 1}, /* {"", "help-icon", 0, 15}, */
{"", "sb-internet", 5, 4},
{"", "sb-help-icon", 0, 15},
}; };
//Sets delimiter between status commands. NULL character ('\0') means no delimiter. //Sets delimiter between status commands. NULL character ('\0') means no delimiter.
static char *delim = " "; static char *delim = " | ";
// Have dwmblocks automatically recompile and run when you edit this file in // Have dwmblocks automatically recompile and run when you edit this file in
// vim with the following line in your vimrc/init.vim: // vim with the following line in your vimrc/init.vim:

View File

@ -7,7 +7,7 @@
#include <errno.h> #include <errno.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
#define LENGTH(X) (sizeof(X) / sizeof (X[0])) #define LENGTH(X) (sizeof(X) / sizeof (X[0]))
#define CMDLENGTH 50 #define CMDLENGTH 100
typedef struct { typedef struct {
char* icon; char* icon;