[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On Mon, Jun 30, 2014 at 11:50 AM, Thorsten Wißmann <edu _at_ thorsten _minus_ wissmann _dot_ 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