mirror of
https://github.com/kolunmi/dwlb.git
synced 2025-10-27 02:04:24 +00:00
Added a tip on README.md for a wrapper script so the user can restart dwlb without having to restart dwl
This commit is contained in:
parent
48dbe00bdb
commit
4f1164fb78
11
README.md
11
README.md
@ -27,6 +27,17 @@ Pass `dwlb` as an argument to dwl's `-s` flag. This will populate each connected
|
|||||||
dwl -s 'dwlb -font "monospace:size=16"'
|
dwl -s 'dwlb -font "monospace:size=16"'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Or create a wrapper script, which allows to restart dwlb `kill -15 "$(pidof dwlb)"` without having to restart dwl:
|
||||||
|
```
|
||||||
|
#!/bin/sh
|
||||||
|
while :; do
|
||||||
|
dwlb
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
```
|
||||||
|
don't forget to make it executable `chmod +x /path/to/dwlb_wrapper.sh` and launch dwl with:
|
||||||
|
dwl -s '/path/to/dwlb_wrapper.sh'
|
||||||
|
|
||||||
## Ipc
|
## Ipc
|
||||||
If dwl is [patched](https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/ipc) appropriately, dwlb is capable of communicating directly with dwl. When ipc is enabled with `-ipc`, dwlb does not read from stdin, and clicking tags functions as you would expect. Ipc can be disabled with `-no-ipc`.
|
If dwl is [patched](https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/ipc) appropriately, dwlb is capable of communicating directly with dwl. When ipc is enabled with `-ipc`, dwlb does not read from stdin, and clicking tags functions as you would expect. Ipc can be disabled with `-no-ipc`.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user