Never mind. The issue was that I needed to use the ${pkgs.<package>}/bin/<program>
thing to give swayidle absolute paths to the commands to run. For the custom lock script, I just needed to put it in an overlay so it could be used as a package.
1 Like