From 3217f76d8b617080a8d15cf6fd11d188856d9750 Mon Sep 17 00:00:00 2001 From: Schark Date: Tue, 5 Dec 2023 22:19:11 -0800 Subject: Fixing dwmblocks --- suckless/dwmblocks/.gitignore | 56 ------------------------------------------- suckless/dwmblocks/blocks.h | 13 ++++++++++ 2 files changed, 13 insertions(+), 56 deletions(-) delete mode 100644 suckless/dwmblocks/.gitignore create mode 100644 suckless/dwmblocks/blocks.h 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; -- cgit v1.2.3-18-g5258