From 7358a29007fe0ad18a8733e6c0b729941ae06f03 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Sat, 25 Nov 2023 16:02:59 -0500 Subject: Add dwmblocks config --- code/dwmblocks/config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 code/dwmblocks/config.h (limited to 'code') diff --git a/code/dwmblocks/config.h b/code/dwmblocks/config.h new file mode 100644 index 0000000..baad3c0 --- /dev/null +++ b/code/dwmblocks/config.h @@ -0,0 +1,20 @@ +//Modify this file to change what commands output to your statusbar, and recompile using the make command. + +// 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-input", 0, 20}, + {"", "sb-audio", 0, 10}, + {"", "sb-battery", 5, 0}, + {"🧠", "sensors | grep 'Tctl' | awk '{print $2}'", 5, 0}, + {"🐏", "free | awk '/^Mem/ { printf \"%.0f%\", $3/$2*100 }'", 5, 0}, + {"", "date '+Q%qW%V%a %H:%M'", 10, 0}, +}; + +//sets delimeter between status commands. NULL character ('\0') means no delimeter. +static char delim[] = " "; +static unsigned int delimLen = 5; -- cgit v1.2.3