diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | action.c | 4 | ||||
-rwxr-xr-x | help | 11 |
3 files changed, 14 insertions, 3 deletions
@@ -33,7 +33,7 @@ clean: dist: clean @echo creating dist tarball @mkdir -p dzen2-${VERSION} - @cp -R LICENSE Makefile README config.mk action.h dzen.h ${SRC} dzen2-${VERSION} + @cp -R LICENSE Makefile README help config.mk action.h dzen.h ${SRC} dzen2-${VERSION} @tar -cf dzen2-${VERSION}.tar dzen2-${VERSION} @gzip dzen2-${VERSION}.tar @rm -rf dzen2-${VERSION} @@ -78,13 +78,13 @@ new_event(long evid) { newitem = emalloc(sizeof (ev_list)); newitem->id = evid; item->next = newitem; - newitem->next= NULL; + newitem->next = NULL; } return 0; } void -add_handler(long evid, int hpos, void * hcb) { +add_handler(long evid, int hpos, void* hcb) { ev_list *item; item = head; @@ -0,0 +1,11 @@ +#!/bin/sh +# +# (c) 2007, by Robert Manea + +OPTS='-bg #323232 -fg #5FBF77 -p -l 20 -e onstart=uncollapse,scrollhome;button5=scrolldown;key_Down=scrolldown;button4=scrollup;key_Up=scrollup;key_Page_Down=scrolldown:20;key_Page_Up=scrollup:20;key_Escape=exit;button3=exit;entertitle=grabkeys;enterslave=grabkeys;leaveslave=ungrabkeys' + +if [ -e ./dzen2 ]; then + (echo "^#323232^#5FBF77Documentation (use: scrollwheel, arrow keys, PgUP/PgDown to scroll. Escape or mouse button3 to exit)"; cat README) | ./dzen2 $OPTS +else + echo "Please type 'make' to build dzen and rerun help" +fi |