[hackers] [tabbed] Enable easier tabbed handling with the xid. || Christoph Lohmann
changeset: 153:6a99512d1d7c
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Fri Apr 06 18:42:53 2012 +0200
files: tabbed.1 tabbed.c
description:
Enable easier tabbed handling with the xid.
diff -r d7542a6f6dc5 -r 6a99512d1d7c tabbed.1
--- a/tabbed.1 Thu Feb 09 18:03:50 2012 +0100
+++ b/tabbed.1 Fri Apr 06 18:42:53 2012 +0200
_AT_@ -7,13 +7,14 @@
.RB [ \-h ]
.RB [ \-s ]
.RB [ \-v ]
-.IR command ...
+.IR [ command ... ]
.SH DESCRIPTION
.B tabbed
is a simple tabbed container for applications which support XEmbed. Tabbed
will then run the provides command with the xid of tabbed as appended
argument. (See EXAMPLES.) The automatic spawning of the command can be
-disabled by provoding the -s parameter.
+disabled by provoding the -s parameter. If no command is provided
+tabbed will just print its xid and run no command.
.SH OPTIONS
.TP
.B \-d
_AT_@ -52,3 +53,6 @@
$ tabbed urxvt -embed
.TP
$ tabbed xterm -into
+.TP
+$ $(tabbed -d >/tmp/tabbed.xid); urxvt -embed $(</tmp/tabbed.xid);
+
diff -r d7542a6f6dc5 -r 6a99512d1d7c tabbed.c
--- a/tabbed.c Thu Feb 09 18:03:50 2012 +0100
+++ b/tabbed.c Fri Apr 06 18:42:53 2012 +0200
_AT_@ -906,7 +906,7 @@
}
}
if(argc < 1)
- usage();
+ doinitspawn = False;
setcmd(argc, argv);
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
Received on Fri Apr 06 2012 - 18:43:01 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 06 2012 - 18:48:08 CEST