diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-30 19:10:43 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-30 19:10:43 +0300 |
commit | f6911df3323a802915fc97d789e6218fe2d710c5 (patch) | |
tree | 1bd955232957df2305b658d37c6055ea9f2508c5 | |
parent | 96cbb453e5373c05372fd4bf3faacfa53e409067 (diff) | |
download | dwmblocks-f6911df3323a802915fc97d789e6218fe2d710c5.tar.gz |
feat: customize blocks
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | blocks.def.h | 12 |
2 files changed, 9 insertions, 5 deletions
@@ -9,7 +9,7 @@ blocks.h: clean: - rm -f *.o *.gch dwmblocks + rm -f *.o *.gch dwmblocks blocks.h install: output mkdir -p $(DESTDIR)$(PREFIX)/bin install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks diff --git a/blocks.def.h b/blocks.def.h index 9c22d68..678f8f9 100644 --- a/blocks.def.h +++ b/blocks.def.h @@ -1,11 +1,15 @@ //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*/ - {"Mem:", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0}, - - {"", "date '+%b %d (%a) %I:%M%p'", 5, 0}, + {" ", "playerctl metadata --format='{{ artist }} - {{ title }}' --player=spotify 2> /dev/null", 3, 1}, + {"", "xkb-switch", 0, 4}, + {"", "~/.local/share/i3blocks-modules/volume -np", 0, 2}, + {"", "~/.local/share/i3blocks-modules/backlight -np", 0, 3}, + {" ", "~/.local/share/i3blocks-modules/wifi -np -f '{ssid}'", 15, 0}, + {" ", "echo $(cat /sys/class/power_supply/BAT0/capacity)%", 30, 0}, + {" ", "date '+%a, %d.%m.%Y %H:%M:%S'", 1, 0}, }; //sets delimeter between status commands. NULL character ('\0') means no delimeter. -static char delim[] = " | "; +static char delim[] = " "; static unsigned int delimLen = 5; |