aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs
diff options
context:
space:
mode:
authorkdam0 <me@kumardamani.net>2023-04-24 15:13:00 +0000
committerkdam0 <me@kumardamani.net>2023-04-24 15:13:00 +0000
commita44cb491aa2af98b63290744b6adccb86f42a09b (patch)
tree0a5be6f3c0f302c3d3f08297b1851086d3de7fa6 /nixpkgs
parent2a9077d72b1395a37bbad797d4c7a52a10651d6a (diff)
added someblocks config
Diffstat (limited to 'nixpkgs')
-rw-r--r--nixpkgs/.config/nixpkgs/common/someblocks/blocks.h13
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;