[PATCH 1/2] Add '-0 / --print0' to herbstclient

Florian Schmaus flo at geekplace.eu
Mon Jun 30 12:10:31 CEST 2014


On Mon, Jun 30, 2014 at 11:50 AM, Thorsten Wißmann <edu at thorsten-wissmann.de
> wrote:

> On Wed, Jun 25, 2014 at 01:09:43PM +0200, Florian Schmaus wrote:
> > +*-0*, *--print0*::
> > +    Use the null character as delimiter between the output of hooks.
> > +
>
> Can you give some example application where you need that? Do you use it
> together with --last-arg for the window-title-applet?
>

That is correct, the log-applet uses popen(<hc>, "r") and
getdelim(...,...,0,...), where

hc := herbstclient -0 -l -i '(focus_changed|window_title_changed)'

to retrieve the window title of the focused window.

Best,
 Florian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20140630/cea09b4a/attachment.htm>


More information about the hlwm mailing list