summaryrefslogtreecommitdiff
path: root/suckless/dwmblocks
diff options
context:
space:
mode:
Diffstat (limited to 'suckless/dwmblocks')
-rw-r--r--suckless/dwmblocks/.gitignore56
-rw-r--r--suckless/dwmblocks/blocks.h13
2 files changed, 13 insertions, 56 deletions
diff --git a/suckless/dwmblocks/.gitignore b/suckless/dwmblocks/.gitignore
deleted file mode 100644
index b6605b4..0000000
--- a/suckless/dwmblocks/.gitignore
+++ /dev/null
@@ -1,56 +0,0 @@
-# Custom blocks file
-blocks.h
-
-# Prerequisites
-*.d
-
-# Object files
-*.o
-*.ko
-*.obj
-*.elf
-
-# Linker output
-*.ilk
-*.map
-*.exp
-
-# Precompiled Headers
-*.gch
-*.pch
-
-# Libraries
-*.lib
-*.a
-*.la
-*.lo
-
-# Shared objects (inc. Windows DLLs)
-*.dll
-*.so
-*.so.*
-*.dylib
-
-# Executables
-*.exe
-*.out
-*.app
-*.i*86
-*.x86_64
-*.hex
-dwmblocks
-
-# Debug files
-*.dSYM/
-*.su
-*.idb
-*.pdb
-
-# Kernel Module Compile Results
-*.mod*
-*.cmd
-.tmp_versions/
-modules.order
-Module.symvers
-Mkfile.old
-dkms.conf
diff --git a/suckless/dwmblocks/blocks.h b/suckless/dwmblocks/blocks.h
new file mode 100644
index 0000000..ec01b6c
--- /dev/null
+++ b/suckless/dwmblocks/blocks.h
@@ -0,0 +1,13 @@
+/* NOTE: `internet-status` is available in my scripts repository, linked below: */
+/* https://git.schark.online/scripts */
+/* https://github.com/jordanscharkey/scripts */
+
+static const Block blocks[] = {
+ /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
+ {"\ Volume:", "pulsemixer --get-volume | sed 's/ .*//'", 5, 0},
+ {"Internet:", "internet-status", 10, 0},
+ {"", "date '+%b %d (%a) %I:%M%p'", 30, 0},
+};
+
+static char delim[] = " | ";
+static unsigned int delimLen = 5;