From e4978330dc81571a625be90d0b88a60f63978f95 Mon Sep 17 00:00:00 2001 From: gotmor Date: Thu, 19 Jul 2007 12:50:58 +0000 Subject: changed a_menuexec and a_menuprint to use the new parser ready for release 0.6.0 git-svn-id: http://dzen.googlecode.com/svn/trunk@131 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- README.dzen | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'README.dzen') diff --git a/README.dzen b/README.dzen index 4fe689b..8d279e2 100644 --- a/README.dzen +++ b/README.dzen @@ -374,34 +374,41 @@ of lines to the slave window as defined by the parameter to '-l'. This feature allows to dynamically (at runtime) set foreground and background colors for dzen's input (colored text) working in all -modes (title only, slave window and menu mode). You can specify the -colors by using their symbolic names or '#rrggbb' values. +modes (title only, slave window and menu mode). -The input must be in the following format: +Syntax: - * Setting only the foreground color: +Foreground color: ^^fg(color) +Background color: ^^bg(color) - ^fg(red)I'm red text ^fg(blue)I am blue - Escaped version, if you view this file with dzen: - ^^fg(red)I'm red text ^^fg(blue)I am blue +These commands can appear anywhere and in any combination in dzen's +input. The color can be specified either as symbolic name (e.g. red, +darkgreen, etc.) or as #rrggbb hex-value (e.g. #ffffaa). +Doubling the '^^' character removes the special meaning from it. - * Setting foreground and/or background colors: +Some examples: - ^bg(#ffaaaa)The ^fg(yellow)text to ^bg(blue)^fg(orange)colorize + Input: + ^^fg(red)I'm red text ^^fg(blue)I am blue - Escaped version, if you view this file with dzen: - ^^bg(#ffaaaa)The ^^fg(yellow)text to ^^bg(blue)^^fg(orange)colorize + Resulting in: + ^fg(red)I'm red text ^fg(blue)I am blue - * If you need to print '^^' characters double them in order to escape them - from being interpreted + Input: + ^^bg(#ffaaaa)The ^^fg(yellow)text to ^^bg(blue)^^fg(orange)colorize - ^fg(grey70)Some text containing ^^ characters + Resulting in: + ^bg(#ffaaaa)The ^fg(yellow)text to ^bg(blue)^fg(orange)colorize - Escaped version, if you view this file with dzen: - ^^fg(grey70)Some text containing ^^^^ characters + + Input: + ^^fg(grey70)Some text containing ^^^^ characters + + Resulting in: + ^fg(grey70)Some text containing ^^ characters -- cgit v1.2.3-54-g00ecf