mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Support ~/.config/komorebi as a config home alternative
#328
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 @michaelruigrok on GitHub (Apr 10, 2024).
A personal quibble: I track my home config in git for both Windows and Linux, and thus would prefer to prefix configuration files with a period so the files are hidden when using a Linux environment. Keeping these files under
~/.config/komorebiwould be ideal.Describe the solution you'd like
If
$HOME/.config/komorebiexists, use this as the default komorebi home directory instead of $HOME directly.While I don't think breaking compatibility would be a concern -- no one would have this directory unless they intended to use it -- a fallback solution would be alternatively available using
.komorebi.jsonfor example, instead of . Ifkomorebi.jsondoes not exist but.komorebi.jsondoes, use the second file for configuration. This ideally would also apply to.ahk,.ps1and any other configuration files.@azinsharaf commented on GitHub (Apr 10, 2024):
what if you use
.configas a parent folder? that is how i do it.@michaelruigrok commented on GitHub (Apr 10, 2024):
Yeah, that makes sense given the KOMOREBI_CONFIG envar. It would be nice to have
~/.config/komorebias a default searched location. I'll update my ticket to reflect this, thanks :)@azinsharaf commented on GitHub (Apr 10, 2024):
maybe it can support
XDG_CONFIG_HOME. not sure.@LGUG2Z commented on GitHub (Apr 10, 2024):
Going to close this as unplanned because there are already way too many lines of code in the project to look up predefined/default paths and there is a robust mechanism in place using the config home env vars to place config files anywhere the end user wants.
@michaelruigrok commented on GitHub (Apr 11, 2024):
Sounds appropriate, thank you for your hard work!