SpawnCwd - bakkeby/dusk GitHub Wiki

The SpawnCwd functionality, when enabled, sets the working directory of a spawned window to that of the currently selected client.

This is often used when spawning new terminals so that they start in the directory of the file currently being worked on.

This is exactly the same functionality as what the spawn_cwd patch for dwm offers and it should be noted that it is essentially a hack that tries to work out the path based on the window title.

This means that 1) this feature will only work for programs that are configured and spawned from within the window manager and 2) this will only work if the window title includes a path.

If you are interested in this then you may also want to have a look at xcwd which is a standalone program that simply prints out the current working directory of the currently focused X window. This can then be used to start individual programs with that working directory.

Back to Functionality.

⚠️ **GitHub.com Fallback** ⚠️