yqrashawn / GokuRakuJoudo

config karabiner with ease
GNU General Public License v3.0
1.16k stars 121 forks source link

feature request: custom path for joker and watchexec #139

Closed kkharji closed 3 years ago

kkharji commented 3 years ago

Hi there, is there away to add a custom path to joker and watchexec binary, I use nix and nix stores binaries in wired places.

It would be great to be able to define the paths using env variables Thanks

lATAl commented 3 years ago

I also have the same problem

kkharji commented 3 years ago

Thanks @yqrashawn, will watchexec work as side effect?

yqrashawn commented 3 years ago

Actually watchexec is used in two places.

  1. the gokuw file, which is just a sh file https://github.com/yqrashawn/GokuRakuJoudo/blob/0d8030c680edac85c603f6d8e4a7bdc9ed1e03f7/.github/workflows/build-and-release.yaml#L37
  2. the homebrew service file https://github.com/yqrashawn/homebrew-goku/blob/133932221f1740d1fb7a9ff39a6ae28728f70b29/Formula/goku.rb#L30

If you are not using homebrew, there won't be the second plist file. You can just need to run the gokuw file with watchexec in PATH