added personal dwmblocks config

This commit is contained in:
Alexander Bocken 2020-04-25 19:11:39 +02:00
parent d137032662
commit 932802d52c
2 changed files with 24 additions and 20 deletions

View File

@ -1,20 +0,0 @@
//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*/
{"", "cat ~/.pacupdate | sed /📦0/d", 0, 9},
{"🧠", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0},
{"", "~/bin/statusbar/volume", 0, 10},
{"", "xbacklight | sed 's/\\..*//'", 0, 11},
{"", "~/bin/statusbar/battery", 5, 0},
{"🌡", "sensors | awk '/^temp1:/{print $2}'", 5, 0},
{"", "~/bin/statusbar/clock", 5, 0},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim = '|';

24
config.h Normal file
View File

@ -0,0 +1,24 @@
//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*/
{"", "music", 3600, 11},
{"", "getpomminutesft", 100, 3},
{"", "getpomminutes", 100, 3},
/* {"", {"weather", 3600, 5},*/
{"", "cpu", 5, 0},
/* { "", "sync_status", 4, 0},*/
{"", "getmail", 20, 13},
/* {"", "btstatus", 2, 17},*/
/* {"", "memory", 5, 0},*/
{"", "news", 600, 13},
{"", "getbright", 4, 2},
{"", "volume", 1, 10},
/* { "", "amixer get Master | grep -o \"\\(\\[off\\]\\|[0-9]*%\\)\"", 0, 10}*/
/* {"", "sed \"s/$/%/\" /sys/class/power_supply/BAT?/capacity", 5, 12},*/
/* {"", "echo $( battery_dwm BAT0)", 5, 12},*/
{"", "clock", 10, 12}, //divert RTMIN update to clock since dwmblocks seems to crash if it's unhandled
{"", "internet", 10, 0},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim = '|';