fix: explicit dependencies in wcwd
This commit is contained in:
parent
229fcde927
commit
d0785468d0
|
@ -1,6 +1,6 @@
|
||||||
self:
|
self:
|
||||||
with self; ''
|
with self; ''
|
||||||
pid=$(${sway}/bin/swaymsg -t get_tree | jq '.. | select(.type?) | select(.type=="con") | select(.focused==true).pid')
|
pid=$(${sway}/bin/swaymsg -t get_tree | ${jq}/bin/jq '.. | select(.type?) | select(.type=="con") | select(.focused==true).pid')
|
||||||
ppid=$(pgrep --newest --parent ''${pid})
|
ppid=$(${procps}/bin/pgrep --newest --parent ''${pid})
|
||||||
readlink /proc/''${ppid}/cwd || echo $HOME
|
readlink /proc/''${ppid}/cwd || echo $HOME
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue