Add blocks

This commit is contained in:
Marco Thomas
2021-03-26 00:55:08 +01:00
parent 96cbb453e5
commit 94d4f22a69
2 changed files with 12 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,3 @@
# Custom blocks file
blocks.h
# Prerequisites # Prerequisites
*.d *.d

12
blocks.h Normal file
View File

@@ -0,0 +1,12 @@
//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*/
{" 󰓇 ", "~/scripts/dwm_bar/song.sh || echo 'Not running'", 5, 0},
{"󰤨 ", "nmcli | grep 'connected' | awk '{ print $4 }'", 10, 0},
{"", "echo $(cat /sys/class/power_supply/BAT0/capacity)%", 10, 0},
{"󰃭 ", "date '+%b %d, %Y - %R'", 5, 0},
};
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " | ";
static unsigned int delimLen = 5;