diff options
| author | krisdoodle45 <86745210+krisdoodle45@users.noreply.github.com> | 2021-10-14 20:47:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-14 20:47:33 +0200 |
| commit | 40af3ab99263ebbf6790659414d2db3771fc0ac4 (patch) | |
| tree | 34d487d7bfc471a9fa59ebf9bfee1f44e05d1f58 /.local | |
| parent | 6faae93d1598e988c75086a36cc99c0eed834f2d (diff) | |
| download | eibhear-40af3ab99263ebbf6790659414d2db3771fc0ac4.tar.gz eibhear-40af3ab99263ebbf6790659414d2db3771fc0ac4.tar.zst eibhear-40af3ab99263ebbf6790659414d2db3771fc0ac4.zip | |
Use setsid
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/samedir | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/.local/bin/samedir b/.local/bin/samedir index 73facfd..82397d3 100755 --- a/.local/bin/samedir +++ b/.local/bin/samedir @@ -2,7 +2,4 @@ # Open a terminal window in the same directory as the currently active window. -PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3) -PID="$(pstree -lpA "$PID" | tail -n 1 | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g')" -cd "$(readlink /proc/"$PID"/cwd)" || return 1 -"$TERMINAL" +setsid -f $TERMINAL >/dev/null 2>&1 |
