diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-14 18:10:57 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-14 18:10:57 +0000 |
commit | 919f42e4d040107020583495cf43843d9a55989b (patch) | |
tree | d4e97e88afb5f3a305a43c52a5ac2b7f8ec0064a | |
parent | ab053d64a10b4b2fd0c01ce0419c8b71e3ce96b3 (diff) | |
download | dzen-919f42e4d040107020583495cf43843d9a55989b.tar.gz dzen-919f42e4d040107020583495cf43843d9a55989b.zip |
release 0.5.0
git-svn-id: http://dzen.googlecode.com/svn/trunk@102 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | draw.c | 3 |
4 files changed, 11 insertions, 8 deletions
@@ -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 @@ -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 @@ -1,5 +1,5 @@ # dzen version -VERSION = 0.4.5 +VERSION = 0.5.0 # Customize below to fit your system @@ -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; } |