summaryrefslogtreecommitdiffstats
path: root/.local/bin/samedir
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-07-19 17:04:17 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-07-19 17:04:17 -0400
commit8f2810ac20c942f784d0cae1d11812d6ce51c308 (patch)
treee2f43a26a779f046d51c43bb03c4f2cf94dadb55 /.local/bin/samedir
parent2a34af646c7c8698a3a6f1d35e8160fffb51e2a2 (diff)
downloadeibhear-8f2810ac20c942f784d0cae1d11812d6ce51c308.tar.gz
eibhear-8f2810ac20c942f784d0cae1d11812d6ce51c308.tar.zst
eibhear-8f2810ac20c942f784d0cae1d11812d6ce51c308.zip
samedir now sd, libxft-bgra message removed
Diffstat (limited to '.local/bin/samedir')
-rwxr-xr-x.local/bin/samedir10
1 files changed, 0 insertions, 10 deletions
diff --git a/.local/bin/samedir b/.local/bin/samedir
deleted file mode 100755
index 371ec64..0000000
--- a/.local/bin/samedir
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# Open a terminal window in the same directory as the currently active window.
-
-PID=$(xprop -id "$(xprop -root | xprop -root | sed -n "/_NET_ACTIVE_WINDOW/ s/^.*# // p")" | sed -n "/PID/ s/^.*= // p")
-PID="$(pstree -lpA "$PID")"
-PID="${PID##*"${SHELL##*/}"(}"
-PID="${PID%%)*}"
-cd "$(readlink /proc/"$PID"/cwd)" || return 1
-"$TERMINAL"