From 932802d52c4e464f25005ac5055e3d206796a367 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sat, 25 Apr 2020 19:11:39 +0200 Subject: [PATCH] added personal dwmblocks config --- blocks.h | 20 -------------------- config.h | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 20 deletions(-) delete mode 100644 blocks.h create mode 100644 config.h diff --git a/blocks.h b/blocks.h deleted file mode 100644 index 31e98af..0000000 --- a/blocks.h +++ /dev/null @@ -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 = '|'; diff --git a/config.h b/config.h new file mode 100644 index 0000000..ee1d86d --- /dev/null +++ b/config.h @@ -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 = '|';