geninclude generated config won't apply #8285
Replies: 2 comments 2 replies
-
geninclude is a new feature, are you using up-to-date kitty?
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi ! It turns out I made the rookie mistake to assume where the script was executing from, making everything as absolute path solved it. Solution: base_path = Path.expanduser(Path("~/.config/kitty"))
if layout.lower() in ("french-pc"):
conf_file = base_path/Path("keyboard_macos-pc.conf")
else:
conf_file = base_path/Path("keyboard_macos-base.conf") instead of if layout.lower() in ("french-pc"):
conf_file = Path("keyboard_macos-pc.conf")
else:
conf_file = Path("keyboard_macos-base.conf") thank you for your time anyway ! (much appreciated) |
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
-
Hello,
I wanted to make a modular config file that changes the key mapping whenever I use a keyboard that has another layout on MACOS ( one is macos french layout, the other a standard french layout )
I thought using
genoinclude
would be a perfect match for this situation, by reading the current layout in the plist dedicated to that whenever kitty launches using a python script to choose the correct set of key mapping.However I can't get it to work somehow and don't understand what I've done wrong, if someone knows, that would help me a lot !
Here are the lines in my
kitty.conf
I built a small script that would read from different keymap config files and print the read file to the stdout using the
print
function ( as I think is suggested in the doc of Kitty for using geninclude ):which seems to run correctly whenever I run it using python
however when I am using the geninclude instead of manually including the file, uncommenting by hand whenever I switch layout, the map don't apply. What am I doing wrong ?
Thank you very much ! ;)
Beta Was this translation helpful? Give feedback.
All reactions