mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
komorebi doesn't use config komorebi.ahk file #88
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @labuut on GitHub (May 26, 2022).
Hello. Please, help me to understand how i can make komorebi to use config komorebi.ahk.
Details:
komorebi-0.1.9-x86_64-pc-windows-msvckomorebic.exeandkomorebi.exe) were moved to...\Program Files\komorebi(added toPath):C:\Users\userName\.komorebi) and create env var for it:komorebi.sample.ahkwas renamed tokomorebi.ahkand moved toKOMOREBI_CONFIG_HOME. I've done some changes in this file (reassign some keys, update some offsets, add a few new hotkeys) as well.komorebi start. It starts working.But I can't cee my updated offsets (invisible-borders or work-area-offset), I can't use reassigned keys and new hotkeys. Only built-in hotkeys (predefined in
komorebi.sample.ahk) work. If I runkomorebi.ahkwith autoHotkey my new and reassigned hotkeys start working. But offsets don't update as well.So, my questions:
komorebi.ahkfromKOMOREBI_CONFIG_HOME?komorebi.ahkfromKOMOREBI_CONFIG_HOME? I've used paramsreload-configurationwatch-configurationin powerShell but I can't see any changes.komorebi start? Or I can usekomorebi(c).exefile?@jmml97 commented on GitHub (May 26, 2022):
I'm having this problem too.
komorebiis not reading the$Env:UserProfile\komorebi.ahkfile. There's no message on the log that could help.@LGUG2Z commented on GitHub (May 26, 2022):
When the configuration is available to be loaded, you should get a line like this come through in the logs during the startup phase:
The configuration loader (and reloader) essentially depends on two checks. The first is to determine the version of AHK based on looking for a specific executable name in your
PATH, and then based on the version that is present, loading eitherkomorebi.ahkorkomorebi.ahk2.I'm assuming that you're using the AHK v1 format since you're modifying the sample, so make sure you have
autohotkey.exein yourPATH.The other thing to check is the versions of PowerShell that you are using. If you're on Windows 10, you probably have both PowerShell 5, 6 and 7 installed. Unfortunately, the profile configuration files for these two versions are held in different locations:
~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1- V5, V6~/Documents/PowerShell/Microsoft.PowerShell_profile.ps1- V7If you use multiple versions of PowerShell concurrently, make sure you have set
$Env:KOMOREBI_CONFIG_HOMEin all the relevant profile files.Finally, you should always start
komorebiby runningkomorebic startfrom PowerShell, and from the version of PowerShell that will load your custom$Env:KOMOREBI_CONFIG_HOMEvariable from the correct profile file.tl;dr This is most likely either a PowerShell environment configuration issue, or a case of the expected AHK executable not being found.
@tgharib commented on GitHub (May 28, 2022):
Adding
C:\Program Files\AutoHotkeyto my system-levelPATHand restarting my PC fixed this issue for me.@jmml97 commented on GitHub (May 28, 2022):
Indeed, adding
C:\Program Files\AutoHotkeyto the system-levelPATHseems to fix this issue.@labuut commented on GitHub (May 28, 2022):
LGUG2Z Thank you for such a verbose answer. As reported above the problem was that autohotkey's folder wasn't in PATH. Adding it to the system-level PATH fixed this issue.
komorebi is a great app, thank you for it.
@calendulish commented on GitHub (Jun 13, 2022):
It still a issue, because I follow the tutorial on readme and can't make it works because readme mention AutoHotKey64.exe file and not mention AutoHotKey.exe. I just make it working after read this issue. I'm using the portable version of AutoHotKey and the executable name that I have originally on the zip are AutoHotkeyU64.exe and using it or rename it to AutoHotKey64.exe don't work (it's already on path). I think the readme must be clarified or loader modified to support these names as well
@LGUG2Z commented on GitHub (Jun 13, 2022):
It sounds like a good idea to specify that the preferred way to install AHK is with
scoop. I think that besides this, we can add environment variables to specify a custom executable name for the AHK binary to test for (for both v1 and v2) for people who don't want to usescoop. I've reopened this issue and will work on this a little later.