Replies: 1 comment
-
|
[Edited] With AHK v1, the following function will populate the Environmental Variable SetKomorebiConfigHome(Path) {
; Define the environment variable name
VarName := "KOMOREBI_CONFIG_HOME"
; Construct the command to set the environment variable permanently
Command := "setx " . VarName . " """ . Path . """"
; Run the command
RunWait, %ComSpec% /c %Command%, , Hide
return Command
}Usage: in folder " Update the KOMOREBI_CONFIG_HOME env var for the OS
" Note, it is important NOT to including an ending slash for the full path, for AHK v1 to parse the string properly.
Path := "c:\Users\full_path\monitor_set1"
command := SetKomorebiConfigHome(Path)
" Run Komorebi on-demand
run, c:\Program Files\komorebi\bin\komorebic.exe startSide note: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use a work laptop in multiple locations (home/office), where each had a distinct collection of monitors. For each set of monitors, with one
komorebi.jsonfile, I can configure how monitors are enumerated and specify the layout for each workspace on those monitors.The question, then, is how to source a different
komorebi.jsonwhen I switch to a different set of monitors. I see two paths, and would like to learn from others who have a similar need:KOMOREBI_CONFIG_HOMEon-demand - as documented on this page, one can opt to use a different directory to store komorebi-related files.For path 1, here is a checklist on implementation:
setx. With this, thatKOMOREBI_CONFIG_HOMEcan be set to point to a different directory based on the monitor configuration (like, the width and height of the entire workspace, which should be unique per each set of monitors).komorebi.jsonfile, configure a "local"komorebi.jsonfile for use. Note, it is important to keep the same number of dictionaries under"monitor": []and"display_index_preferences: {}".For path 2, it is dropped for now, as there is an implicit but necessary one-to-one mapping between dictionaries under
"monitor": []and entries in"display_index_preferences: {}".Beta Was this translation helpful? Give feedback.
All reactions