5 Commits

Author SHA1 Message Date
snailed
033c7f854d
Improve window PID discovery in sd script
The current way of finding the PID of the active window is quite fragile due to the extremely loose regex in place. Since xdotool is already a dependency of multiple other scripts I'd recommend just using that.
2023-02-22 09:24:17 +00:00
Rokosun
1ccf88c099
Various bug fixes and improvements for sd script
* Programs that show ~/ or / instead of the actual working directory are now ignored by the script (except for zsh & lf where its correct). This will fix bugs where sd opens your home folder instead of the current working directory.
* This also removes the need for manually excluding all programs that don't show the correct cwd.
* git (and its sub-processes) will show the root of a repository instead of the actual cwd, so they're ignored too.
2023-01-20 19:44:36 +00:00
Rokosun
0efa08107c
Improve sd script (#1235)
* Improve sd script

Now sd will also work on apps like mpv and zathura

* Fix sd script not working on firefox
2022-11-16 16:04:26 +00:00
Rokosun
cc7ac4619a
Make sd script work with lf file manager too (#1212)
Now sd script can open a terminal window in the same directory as the currently active lf file manager window
2022-10-15 01:25:19 +00:00
Luke Smith
8f2810ac20 samedir now sd, libxft-bgra message removed 2022-07-19 17:04:17 -04:00