From 4f1164fb780c0aacc9e8d8c84224b02e0758b18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Desgualdo=20Pereira?= Date: Thu, 23 Oct 2025 13:29:46 -0300 Subject: [PATCH 1/2] Added a tip on README.md for a wrapper script so the user can restart dwlb without having to restart dwl --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 83734db..56c90e1 100644 --- a/README.md +++ b/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"' ``` +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 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`. From 744d5eec1e048026e9a8710abe338748fe162477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Desgualdo=20Pereira?= Date: Thu, 23 Oct 2025 13:32:57 -0300 Subject: [PATCH 2/2] fixed the style --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56c90e1..e8bfc74 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ while :; do 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' +`dwl -s '/path/to/dwlb_wrapper.sh'` ## 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`.