diff --git a/pkgs/wcwd.nix b/pkgs/wcwd.nix index 3f5e676..7e6737a 100644 --- a/pkgs/wcwd.nix +++ b/pkgs/wcwd.nix @@ -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 ''