Update README and close file descriptors on exit

This commit is contained in:
Utkarsh Verma
2021-10-16 09:32:18 +05:30
parent eaee001006
commit 5a3097a13d
2 changed files with 40 additions and 27 deletions

View File

@@ -78,7 +78,8 @@ The syntax for defining a block is:
```c
static Block blocks[] = {
...
BLOCK("date", 1800, 1)
BLOCK("volume", 0, 5)
BLOCK("date", 1800, 1)
...
}
```
@@ -99,7 +100,7 @@ Most statusbars constantly rerun every script every several seconds to update. T
For example, the volume module has the update signal 5 by default. Thus, running `pkill -RTMIN+5 dwmblocks` will update it.
You can also run `kill -44 $(pidof dwmblocks)` which will have the same effect, but is faster. Just add 34 to your typical signal number.
You can also run `kill -39 $(pidof dwmblocks)` which will have the same effect, but is faster. Just add 34 to your typical signal number.
My volume module *never* updates on its own, instead I have this command run along side my volume shortcuts in `dwm` to only update it when relevant.