From ebfdbc7d3d77c281dce775ce22e4fa64e346cbcc Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Thu, 29 Aug 2024 03:33:49 +0900 Subject: Add new status script to dwmblocks, update README --- code/dwmblocks/config.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'code/dwmblocks') diff --git a/code/dwmblocks/config.h b/code/dwmblocks/config.h index cace621..6587a09 100644 --- a/code/dwmblocks/config.h +++ b/code/dwmblocks/config.h @@ -1,4 +1,9 @@ -//Modify this file to change what commands output to your statusbar, and recompile using the make command. +// Modify this file to change what commands output to your statusbar, and +// recompile using the make command. Kill the previous dwmblocks if any, run +// `dwmblocks &` again. + +// DWM's status bar can also be changed with (xprop -root -set WM_NAME "hi") +// https://dwm.suckless.org/status_monitor/ // Other people's configs: // https://github.com/LukeSmithxyz/dwmblocks/blob/master/config.h @@ -12,6 +17,7 @@ static const Block blocks[] = { {"", "sb-battery", 5, 0}, {"🧠", "sensors | grep 'Tctl' | awk '{print $2}'", 5, 0}, {"🐏", "free | awk '/^Mem/ { printf \"%.0f%\", $3/$2*100 }'", 5, 0}, + {"", "sb-network", 30, 30}, {"", "date '+Q%qW%V%a %m月%d日 %H:%M'", 12, 0}, }; -- cgit v1.2.3