fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.35k stars 214 forks source link

Reload bug.n from the command line #228

Closed ertwro closed 4 years ago

ertwro commented 4 years ago

I use autohotkey.exe /r C:\[RepoDirectory]\src\Main.ahk When I try to run a command-line argument to reload Main.ahk, is not possible for the following reasons.

I use vim as my text editor and would like to reload bug.every time I save the config.ini file. For that reason, I require a command-line way of reloading, or passing WinCtrlr from the command line without another script, just to pass three simple keys.

At the moment I'm using a command-line application called nircmd and doing nricmdc.exe sendkeypress lwin+Ctrl+Shift+r which works but seems excessive to me.

joten commented 4 years ago

You may create a link e.g. C:[RepoDirectory]\run_bugn.lnk for executing "C:\Program Files\AutoHotkey\AutoHotkey.exe" C:\[RepoDirectory]\src\Main.ahk with C:\[RepoDirectory]\src as the working directory. At least from cmd you can then run the link.

ertwro commented 4 years ago

I didn't know you could do that with windows links. Thanks.