massive cleanup

This commit is contained in:
Luke Smith
2019-05-19 20:05:14 -04:00
parent bf8c6b1e20
commit c6e69e9642
41 changed files with 11 additions and 24 deletions

5
.local/bin/samedir Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3)
PID=$(echo "$(pstree -lpA "$PID" | tail -n 1)" | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g')
cd "$(readlink /proc/"$PID"/cwd)"
"$TERMINAL"