Re: [dev] Odds and ends (2/2): $XEMBED

From: Connor Lane Smith <cls_AT_lubutu.com>
Date: Wed, 6 May 2015 11:43:48 +0100

On 4 May 2015 at 11:56, Roberto E. Vargas Caballero <k0ga_AT_shike2.com> wrote:
> The idea is good, but it means that you have to modify all the programs
> to accept this new feature. If you want to experiment with this idea
> you can try to add this variable in st and read it in surf.

I've written a wrapper which makes a given program support this, and
it's pretty tiny, too. Attached. Sample usage:

> #!/bin/sh
> exec 9embed -e surf "$_AT_"

I've not found time to add the functionality into a terminal like st
yet, but I was happy to discover that tabbed already sets XEMBED, and
the wrapper works as expected: 'surf &' will open surf in a new
window, whereas 'surf' will open it in a new tab.

Thanks,
cls

Received on Wed May 06 2015 - 12:43:48 CEST

This archive was generated by hypermail 2.3.0 : Wed May 06 2015 - 12:48:08 CEST