From a44cb491aa2af98b63290744b6adccb86f42a09b Mon Sep 17 00:00:00 2001 From: kdam0 Date: Mon, 24 Apr 2023 11:13:00 -0400 Subject: added someblocks config --- nixpkgs/.config/nixpkgs/common/someblocks/blocks.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nixpkgs/.config/nixpkgs/common/someblocks/blocks.h diff --git a/nixpkgs/.config/nixpkgs/common/someblocks/blocks.h b/nixpkgs/.config/nixpkgs/common/someblocks/blocks.h new file mode 100644 index 0000000..dd342aa --- /dev/null +++ b/nixpkgs/.config/nixpkgs/common/someblocks/blocks.h @@ -0,0 +1,13 @@ +//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*/ + {"", "amixer sget 'Master' | grep Right | awk -F'[][]' '{print $2$4}' | sed '2q;d'", 1, 0}, + {"", "nmcli -f DEVICE,NAME --terse con show", 30, 0}, + {"", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0}, + {"", "acpi | awk -F' ' '{print $2, $4, $3}' | tr -d ',' | tr '\n' ';'", 30, 0}, + {"", "date '+%b %d (%a) %I:%M:%S%p'", 5, 0}, +}; + +//sets delimeter between status commands. NULL character ('\0') means no delimeter. +static char delim[] = " | "; +static unsigned int delimLen = 5; -- cgit v1.2.3