fix: explicit dependencies in wcwd

This commit is contained in:
Benjamin Bädorf 2023-10-07 17:18:53 +02:00
parent 229fcde927
commit d0785468d0
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -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
'' ''