summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-02-08 09:43:28 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-02-08 09:43:28 -0500
commit6bd2e845be1f4efe089ec3f4d0fea82c93a515bb (patch)
treee00add39a5b136e3ee8f3edb776a2074d7a8638e
parenta6c82c2148384296df1be6069f885c63e77ef111 (diff)
downloaddwmblocks-6bd2e845be1f4efe089ec3f4d0fea82c93a515bb.tar.gz
dwmblocks-6bd2e845be1f4efe089ec3f4d0fea82c93a515bb.tar.bz2
dwmblocks-6bd2e845be1f4efe089ec3f4d0fea82c93a515bb.zip
use general scripts for statusbar
-rw-r--r--README.md4
-rw-r--r--blocks.h18
2 files changed, 13 insertions, 9 deletions
diff --git a/README.md b/README.md
index 0f7d41c..2d0590b 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,10 @@ 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 blocks.h header file.
+# Luke's bulid
+I have dwmblocks read my preexisting scripts [here in my dotfiles repo](https://github.com/LukeSmithxyz/voidrice/tree/master/.local/bin/statusbar).
+So if you want my build out of the box, download those and put them in your `$PATH`.
+I do this to avoid redundancy in LARBS, both i3 and dwm use the same statusbar scripts.
# signalling changes
For example, the audio module has the update signal 10 by default.
Thus, running `pkill -RTMIN+10 dwmblocks` will update it.
diff --git a/blocks.h b/blocks.h
index 49eeee7..d02e53f 100644
--- a/blocks.h
+++ b/blocks.h
@@ -2,15 +2,15 @@
static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
/* {"", "cat /tmp/recordingicon", 0, 9}, */
- /* {"", "mpc status | grep -v ^volume | head -n 1", 0, 11}, */
- {"mail:", "find ~/.local/share/mail/*/INBOX/new -type f | wc -l", 0, 12},
- {"vol:", "amixer get Master | tail -n1 | sed -r 's/.*\\[(.*)%\\].*/\\1/'", 0, 10},
- {"bat:", "sed \"s/$/%/\" /sys/class/power_supply/BAT?/capacity", 5, 0},
- {"", "date '+%b %d (%a) %I:%M%p'", 60, 0},
- /* weather: 5 */
- /* news: 6 */
- /* torrent: 7 */
- /* packages: 8 */
+ /* {"", "music", 0, 11}, */
+ {"", "pacpackages", 0, 8},
+ {"", "torrent", 20, 7},
+ {"", "news", 0, 6},
+ {"", "weather", 18000, 5},
+ {"", "mailbox", 180, 12},
+ {"", "volume", 0, 10},
+ {"", "battery", 5, 0},
+ {"", "clock", 60, 0},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
Software created with 💖