diff options
| -rw-r--r-- | nixpkgs/.config/nixpkgs/common/someblocks/blocks.h | 13 |
1 files changed, 13 insertions, 0 deletions
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; |
