From 919f42e4d040107020583495cf43843d9a55989b Mon Sep 17 00:00:00 2001 From: gotmor Date: Thu, 14 Jun 2007 18:10:57 +0000 Subject: release 0.5.0 git-svn-id: http://dzen.googlecode.com/svn/trunk@102 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- README | 10 +++++++++- TODO | 4 ---- config.mk | 2 +- draw.c | 3 +-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README b/README index 69efc9a..b4087ba 100644 --- a/README +++ b/README @@ -150,6 +150,8 @@ An example: Supported events: +----------------- + onstart Perform actions right after startup onexit Perform actions just before exiting button1 Mouse button1 released @@ -175,7 +177,10 @@ Supported events: after 'XK_' in keysymdef.h must be used for KEYNAME. + Supported actions: +------------------ + exec:command1:..:n execute all given options menuexec executes selected menu entry exit:retval exit dzen and return 'retval' @@ -191,8 +196,11 @@ Supported actions: raise raise window to view (above all others) lower lower window (behind all others) scrollhome show head of input + scrollend show tail of input scrollup:n scroll slave window n lines up (default n=1) scrolldown:n scroll slave window n lines down (default n=1) + grabkeys enable keyboard support + ungrabkeys disable keyboard support Note: If no events/actions are specified dzen defaults to: @@ -300,7 +308,7 @@ The input must be in the following format: An example: - echo "^#ffffff^#000000I am white text on black background" | ./dzen2 -p + echo "^#ffffff^#000000I am white text on black background" | dzen2 -p diff --git a/TODO b/TODO index fa4b3e1..5b776ce 100644 --- a/TODO +++ b/TODO @@ -1,17 +1,13 @@ # extend available events: o input changed event - o keyboard support # extend available actions - o set foreground color action - o set background color action o set font action o actions acting like a switch should have a toggleaction function o any other useful action # user interface - o title and slave window should be allowed to have different bg/fg/font/settings without making the command line arguments a mess o split lines longer than window width in multiple lines diff --git a/config.mk b/config.mk index 0efce5e..2bcb038 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # dzen version -VERSION = 0.4.5 +VERSION = 0.5.0 # Customize below to fit your system diff --git a/draw.c b/draw.c index bac0883..b0ad3f9 100644 --- a/draw.c +++ b/draw.c @@ -60,7 +60,6 @@ drawtext(const char *text, int reverse, int line, int align) { XSetForeground(dzen.dpy, mgc, dzen.slave_win.tbuf[line+dzen.slave_win.first_line_vis].bg): XSetForeground(dzen.dpy, mgc, dzen.slave_win.tbuf[line+dzen.slave_win.first_line_vis].fg); } - } if(!text) @@ -131,7 +130,7 @@ getcolor(const char *colstr) { if(!XAllocNamedColor(dzen.dpy, cmap, colstr, &color, &color)) return -1; - //eprint("dzen: error, cannot allocate color '%s'\n", colstr); + return color.pixel; } -- cgit v1.2.3-54-g00ecf