fix: explicit dependencies in wcwd

feat/email
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
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
self:
with self; ''
pid=$(${sway}/bin/swaymsg -t get_tree | jq '.. | select(.type?) | select(.type=="con") | select(.focused==true).pid')
ppid=$(pgrep --newest --parent ''${pid})
pid=$(${sway}/bin/swaymsg -t get_tree | ${jq}/bin/jq '.. | select(.type?) | select(.type=="con") | select(.focused==true).pid')
ppid=$(${procps}/bin/pgrep --newest --parent ''${pid})
readlink /proc/''${ppid}/cwd || echo $HOME
''