]> git.newer.systems - dwmblocks.git/commitdiff
for-website
authorTucker Johnson <tucker@newer.systems>
Fri, 7 Feb 2025 12:20:01 +0000 (07:20 -0500)
committerTucker Johnson <tucker@newer.systems>
Fri, 7 Feb 2025 12:20:01 +0000 (07:20 -0500)
Makefile
README.md [deleted file]
README.txt [new file with mode: 0644]
config.h

index 397696d5876ce2cddf02d1e3df57ff79115e3886..32c9294738a9dffe2f158c93f57f25b9a58294fe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,13 +21,7 @@ install: dwmblocks
        chmod 755 $(DESTDIR)$(PREFIX)/bin/sb-nettraf
        chmod 755 $(DESTDIR)$(PREFIX)/bin/sb-volume
 uninstall:
-       rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks
-       rm -f $(DESTDIR)$(PREFIX)/bin/sb-battery
-       rm -f $(DESTDIR)$(PREFIX)/bin/sb-clock
-       rm -f $(DESTDIR)$(PREFIX)/bin/sb-cpu
-       rm -f $(DESTDIR)$(PREFIX)/bin/sb-internet
-       rm -f $(DESTDIR)$(PREFIX)/bin/sb-memory
-       rm -f $(DESTDIR)$(PREFIX)/bin/sb-nettraf
-       rm -f $(DESTDIR)$(PREFIX)/bin/sb-volume
+       rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks\
+               $(DESTDIR)$(PREFIX)/bin/sb-*
 
 .PHONY: clean install uninstall
diff --git a/README.md b/README.md
deleted file mode 100644 (file)
index 474c690..0000000
--- a/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-Modular status bar for dwm written in c.
-
-#### Modifying blocks
-
-The statusbar is made from text output from commandline programs. Blocks are
-added and removed by editing the config.h file.
-
-Requires dwm [patch](https://dwm.suckless.org/patches/statuscmd/) from Daniel
-Bylinka (daniel.bylinka@gmail.com).
diff --git a/README.txt b/README.txt
new file mode 100644 (file)
index 0000000..b0e04c6
--- /dev/null
@@ -0,0 +1,13 @@
+Modular status bar for dwm written in c.
+
+install with 'sudo make install'
+
+Modifying blocks:
+
+The statusbar is made from text output from commandline programs with wrapper
+scripts. Blocks are added and removed by editing the config.h file and the
+scripts are stored in a directory alongside the source. Remeber to update the
+Makefile to install the scripts!
+
+Requires a patch from Daniel Bylinka (daniel.bylinka@gmail.com).
+https://dwm.suckless.org/patches/statuscmd/
index 26e95065bb1b15c74c7e3c844f24e5da625f8c20..859d9a27f9a74da47f9f6aca8d4258fb4310a4a3 100644 (file)
--- a/config.h
+++ b/config.h
@@ -7,6 +7,7 @@ static const Block blocks[] = {
        {"",        "sb-volume",        0,      10},
        {"",        "sb-nettraf",       1,      16},
        {"",        "sb-internet",      5,      4},
+    /*uncomment for laptops:*/
 /*     {"",        "sb-battery",       5,      3}, */
        {"",        "sb-clock",     60, 1},
 };