iChanging the parameter layout. - thingmenu - A simple graphical menu launcher for X11. Err bitreich.org 70
hgit clone git://bitreich.org/thingmenu URL:git://bitreich.org/thingmenu bitreich.org 70
1Log /scm/thingmenu/log.gph bitreich.org 70
1Files /scm/thingmenu/files.gph bitreich.org 70
1Refs /scm/thingmenu/refs.gph bitreich.org 70
1Tags /scm/thingmenu/tag bitreich.org 70
1LICENSE /scm/thingmenu/file/LICENSE.gph bitreich.org 70
i--- Err bitreich.org 70
1commit ed1b10cb2eb03d31078fcd5353d60a36c7d77d87 /scm/thingmenu/commit/ed1b10cb2eb03d31078fcd5353d60a36c7d77d87.gph bitreich.org 70
1parent fa32f61ef9dcbe04deddad48176d2919ed5b2326 /scm/thingmenu/commit/fa32f61ef9dcbe04deddad48176d2919ed5b2326.gph bitreich.org 70
hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70
iDate: Wed, 7 Sep 2011 21:46:01 +0200 Err bitreich.org 70
i Err bitreich.org 70
iChanging the parameter layout. Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M thingmenu.1 | 6 +++--- Err bitreich.org 70
i M thingmenu.c | 12 +++++------- Err bitreich.org 70
i Err bitreich.org 70
i2 files changed, 8 insertions(+), 10 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/thingmenu.1 b/thingmenu.1 /scm/thingmenu/file/thingmenu.1.gph bitreich.org 70
i@@ -17,7 +17,7 @@ Err bitreich.org 70
i .Op Fl wx Ar x position Err bitreich.org 70
i .Op Fl wy Ar y position Err bitreich.org 70
i .Op Fl - Err bitreich.org 70
i-.Ar [label:]cmd ... Err bitreich.org 70
i+.Ar label0 cmd0 [label1 cmd1 ...] Err bitreich.org 70
i .Ek Err bitreich.org 70
i . Err bitreich.org 70
i .Sh DESCRIPTION Err bitreich.org 70
i@@ -94,7 +94,7 @@ When being clicked this entry will run Err bitreich.org 70
i After that the menu will not exit (-s). Err bitreich.org 70
i .Ed Err bitreich.org 70
i .Bd -literal Err bitreich.org 70
i- % thingmenu -s -ww 300 -- "Reboot now:reboot" Err bitreich.org 70
i+ % thingmenu -s -ww 300 -- "Reboot now" reboot Err bitreich.org 70
i Err bitreich.org 70
i .Ed Err bitreich.org 70
i .Bd -filled Err bitreich.org 70
i@@ -102,7 +102,7 @@ This will create a centered menu, which is aligned based on the length of the Err bitreich.org 70
i label texts. After the first clicked entry it will exit. Err bitreich.org 70
i .Ed Err bitreich.org 70
i .Bd -literal Err bitreich.org 70
i- % thingmenu "Force reboot:reboot -f" "Shutdown:shutdown" Err bitreich.org 70
i+ % thingmenu "Force reboot" "reboot -f" Shutdown shutdown Err bitreich.org 70
i Err bitreich.org 70
i .Ed Err bitreich.org 70
i . Err bitreich.org 70
1diff --git a/thingmenu.c b/thingmenu.c /scm/thingmenu/file/thingmenu.c.gph bitreich.org 70
i@@ -518,7 +518,7 @@ usage(char *argv0) Err bitreich.org 70
i { Err bitreich.org 70
i fprintf(stderr, "usage: %s [-hxso] [-wh height] [-ww width] " Err bitreich.org 70
i "[-wx x position] [-wy y position] [--] " Err bitreich.org 70
i- "label:cmd ...\n", argv0); Err bitreich.org 70
i+ "label0 cmd0 [label1 cmd1 ...]\n", argv0); Err bitreich.org 70
i exit(1); Err bitreich.org 70
i } Err bitreich.org 70
i Err bitreich.org 70
i@@ -585,12 +585,10 @@ main(int argc, char *argv[]) Err bitreich.org 70
i Err bitreich.org 70
i for (; argv[i]; i++) { Err bitreich.org 70
i label = argv[i]; Err bitreich.org 70
i- cmd = strchr(label, ':'); Err bitreich.org 70
i- if (cmd == NULL) { Err bitreich.org 70
i- cmd = label; Err bitreich.org 70
i- } else { Err bitreich.org 70
i- *cmd++ = '\0'; Err bitreich.org 70
i- } Err bitreich.org 70
i+ if (!argv[i+1]) Err bitreich.org 70
i+ break; Err bitreich.org 70
i+ i++; Err bitreich.org 70
i+ cmd = argv[i]; Err bitreich.org 70
i Err bitreich.org 70
i entries = realloc(entries, sizeof(entries[0])*(++nentries)); Err bitreich.org 70
i entries[nentries-1] = malloc(sizeof(*entries[0])); Err bitreich.org 70
.
Response:
text/plain