diff options
| author | Mitsuo Tokumori <[email protected]> | 2024-09-11 04:25:38 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2024-09-11 04:25:38 +0900 |
| commit | 37ff7062874b72bafa99afe661f42653565ed511 (patch) | |
| tree | 60372bf7fdb94c9034c7d1cc5a17cd7df526c4fc /public/code/dwmblocks | |
| parent | dca319b8d9d221f1aaf3a00ee457d202096c66ac (diff) | |
| download | dotfiles-37ff7062874b72bafa99afe661f42653565ed511.tar.gz dotfiles-37ff7062874b72bafa99afe661f42653565ed511.tar.bz2 dotfiles-37ff7062874b72bafa99afe661f42653565ed511.zip | |
RESTRUCTURE. Replicate relative paths in public/
Diffstat (limited to 'public/code/dwmblocks')
| -rw-r--r-- | public/code/dwmblocks/config.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/public/code/dwmblocks/config.h b/public/code/dwmblocks/config.h new file mode 100644 index 0000000..6587a09 --- /dev/null +++ b/public/code/dwmblocks/config.h @@ -0,0 +1,26 @@ +// 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 +// https://git.denshi.org/dwmblocks/tree/blocks.h + +static const Block blocks[] = { + /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ + + {"", "sb-input", 0, 20}, + {"", "sb-audio", 0, 10}, + {"", "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}, +}; + +//sets delimeter between status commands. NULL character ('\0') means no delimeter. +static char delim[] = " "; +static unsigned int delimLen = 5; |
