Understand SWHKD environment variable handling
mainSWHKD emulates the environment variables of your default shell. This is achieved through the swhks (server) binary, which runs in the background and tracks environment variables.
When a hotkey is triggered, the command is executed via SHELL -c 'command'. This ensures that the environment is sourced from your default shell.
To use a custom set of environment variables, you should either:
- Set/export them in your default shell.
- Export them in your current shell instance before running the
swhksbinary.