spawn_window_cwd

Description

This patch spawns programs from the currently focused client's window. Similar to the spawn_cwd patch, it incorporates enhanced logic and resolves limitations from the original implementation. Instead of parsing the client's window name (which may not provide the cwd), it searches for the newest ppid and uses its cwd, which is typically the shell, or $HOME in case of failure.

Download

Author