aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-15 11:17:21 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-15 11:17:21 +0000
commitcc3d72cc98e7c19e0b42568252fc5c6881342341 (patch)
treebb2163d3e8c6f0b9fc2bb203727a178604695e33
parentc1370699c3026c8a1c97a5880ef4dfa32aea9c2e (diff)
downloaddzen-cc3d72cc98e7c19e0b42568252fc5c6881342341.tar.gz
dzen-cc3d72cc98e7c19e0b42568252fc5c6881342341.zip
help script added
git-svn-id: http://dzen.googlecode.com/svn/trunk@104 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r--Makefile2
-rw-r--r--action.c4
-rwxr-xr-xhelp11
3 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 454cd02..12f6ab6 100644
--- a/Makefile
+++ b/Makefile
@@ -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}
diff --git a/action.c b/action.c
index 8923017..b6564fb 100644
--- a/action.c
+++ b/action.c
@@ -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;
diff --git a/help b/help
new file mode 100755
index 0000000..ebf4686
--- /dev/null
+++ b/help
@@ -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