summaryrefslogtreecommitdiffstats
path: root/public/code/dwmblocks/config.h
blob: a53a306f3a7e57e10fc25beb0c62b98cb6a1e37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Modify this file to change what commands output to your statusbar, and
// recompile using the make command.  Kill the previous dwmblocks if any, run
// `dwmblocks &` again.

// DWM's status bar can also be changed with (xprop -root -set WM_NAME "hi")
// https://dwm.suckless.org/status_monitor/

// Other people's configs:
// https://github.com/LukeSmithxyz/dwmblocks/blob/master/config.h
// https://git.denshi.org/dwmblocks/tree/blocks.h

static const Block blocks[] = {
    /*Icon*/    /*Command*/     /*Update Interval*/ /*Update Signal*/

    {"", "sb-stopwatch",                                                20, 5},
    {"", "sb-input",                                                    0,  20},
    {"", "sb-audio",                                                    0,  10},
    {"", "sb-battery",                                                  20, 0},
    {"🧠", "sensors | grep 'Tctl' | awk '{print $2}'",                  5,  0},
    {"🐏", "free | awk '/^Mem/ { printf \"%.0f%\", $3/$2*100 }'",       5,  0},
    {"", "sb-network",                                                  30, 30},
    {"", "date '+Q%qW%V%a %m月%d日 %H:%M'",                             12, 0},
};

//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " ";
static unsigned int delimLen = 5;