mirror of
https://github.com/FAUSheppy/config
synced 2025-12-07 15:31:35 +01:00
11 lines
223 B
Bash
11 lines
223 B
Bash
#!/bin/bash
|
|
ID=$(xdpyinfo | grep focus | cut -f4 -d " ")
|
|
PID=$(($(xprop -id $ID | grep -m 1 PID | cut -d " " -f 3) + 2))
|
|
if [ -e "/proc/$PID/cwd" ]
|
|
then
|
|
urxvt -cd $(readlink /proc/$PID/cwd) &
|
|
else
|
|
urxvt
|
|
fi
|
|
|