#!/bin/sh shebang. newline after universalized.

This commit is contained in:
Luke Smith
2020-02-08 18:43:37 -05:00
parent a25e8b640a
commit 2b5df860de
62 changed files with 88 additions and 61 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env sh
#!/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)"