Re: [dev][dwm] Launching new terminals in $PWD

From: Chris Down <>
Date: Fri, 18 Oct 2013 18:12:45 +0800

On 2013-10-18 12:03, Manolo MartĂ­nez wrote:
> > I guess what you want is the pwd of the client that currently has
> > focus… I also need something like that for plumb(1)ing purposes
> That's probably what I want, yes. Thanks.

Environments only propagate to children, not their parents. You'll need to get
the pwd of the currently focussed window if you want to do that.

> Well, the following mouthful does it in fish (mutatis mutandis for other
> shells):
> pwdx (xdotool getwindowpid (xdotool getwindowfocus))


    pwdx "$(xdotool getwindowpid "$(xdotool getwindowfocus)")"

It seems pwdx is part of procps-ng.

Received on Fri Oct 18 2013 - 12:12:45 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 18 2013 - 12:24:07 CEST