feat(ahk): autoload config on start

When AutoHotKey is detected, and %USERPROFILE%\komorebi.ahk exists,
komorebi.exe will now try to run the ahk script after starting the
command listener.

For this to work smoothly, it is important to set the #SingleInstance
directive to Force in komorebi.ahk, which will ensure that duplicates of
the script are not run, and a new version of the script is loaded
without displaying a GUI confirmation prompt.

resolve #3
This commit is contained in:
LGUG2Z
2021-08-14 07:53:37 -07:00
parent 55b62c2bc9
commit 91ddb2c22b
5 changed files with 31 additions and 1 deletions

View File

@@ -84,6 +84,9 @@ by `komorebic`.
You can similarly stop the process by running `komorebic stop`.
If you have AutoHotKey installed and a `komorebi.ahk` file in your home directory (run `$Env:UserProfile` at a
PowerShell prompt to find your home directory), `komorebi` will automatically try to load it when starting.
## Configuration
As previously mentioned, this project does not handle anything related to keybindings and shortcuts directly. I