config.h (908B)
1 //Modify this file to change what commands output to your statusbar, and recompile using the make command. 2 static const Block blocks[] = { 3 /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ 4 {"🧠", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0}, 5 {"", "battery", 30, 0}, 6 {"📅 ","date '+%a, %b %d'", 30, 0}, 7 {"⏰ ","date '+%I:%M:%S %p'", 1, 0}, 8 }; 9 10 //sets delimeter between status commands. NULL character ('\0') means no delimeter. 11 static char *delim = " "; 12 13 // Have dwmblocks automatically recompile and run when you edit this file in 14 // vim with the following line in your vimrc/init.vim: 15 16 // autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid dwmblocks & }