Re: [dwm] [dzen] keyboard control & dynamic color support

From: lobzang <lobzang_AT_free.fr>
Date: Thu, 14 Jun 2007 16:49:31 +0200

Hi ,

This is a feature I was waiting for...

However , this won't work :

echo "^#224466FOOOO^#888888BAAAR" | dzen2 -p

Is there any possibility to have different colors on the same line ?

Thanks !

On Thu, 2007-06-14 at 13:41 +0200, Robert Manea wrote:

> Hi,
>
> if anyone would like to give dynamic color support and keyboard control
> in dzen a try should checkout svn trunk:
>
> svn checkout http://dzen.googlecode.com/svn/trunk/ dzen
>
> * Keyboard support:
> -----------------
>
> add the keys to action bindings like this:
>
> -e 'key_Escape=exit;key_j=scrolldown;key_k=scrollup'
>
> The part after 'key_' corresponds to keysymdef.h (the part after
> 'XK_')
>
> Two new actions were introduced "grabkeys" and "ungrabkeys", useful in
> combination with the "onstart" event in order to let dzen grab the
> keyboard right after startup.
>
>
> * Dynamic color support:
> ----------------------
>
> pipe lines like the following to dzen:
>
> echo "^#cc11ffTEXTTOBECOLOREDHERE" | ./dzen2 -p
>
> For a quick test use this:
> {echo title; sleep 1; echo "^#cc11fffooooo"; \
> sleep 1; echo "^#ddaaffbaaaaar"; sleep 1; \
> echo defaultcolor; sleep 1; echo "^#23dca1someothercolor"} | \
> dzen2 -p -bg black -l 8
>
>
> There is a known off by one problem in menu mode with coloring otherwise
> it should work ok.
>
> Ideas and suggestions welcome.
>
> Bye, Rob.
>
>

Lobzang
___________________
http://lobzang.free.fr
Received on Thu Jun 14 2007 - 16:50:07 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:44:18 UTC