Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new layout dynamically #9

Open
mixn opened this issue Sep 4, 2018 · 1 comment
Open

Adding a new layout dynamically #9

mixn opened this issue Sep 4, 2018 · 1 comment

Comments

@mixn
Copy link

mixn commented Sep 4, 2018

This is a great and very useful tool, thank you for taking the time to create it! 👏😊

I was wondering if it would be useful/possible to allow adding a new layout dynamically, e.g.:

xkbswitch -se German

would then result in it being available and set.

screen shot 2018-09-04 at 12 33 57

Instead of getting this message (which totally makes sense, of course):

There is no active layout with name in the default prefix "German"
Trying with the org.unknown.keylayout prefix...
Unable to find an active layout with this name.

I think this would be a great addition since it’d really help with setting up preferred languages in dotfiles. I was/am trying to configure German/Serbian-Latin as my two only keyboard layouts by default and struggled finding a command-line-based solution that wasn’t too hacky. This tool is super clean but only allows for switching/reading, not adding.

Of course, it wouldn’t have to be via -se, it could also be done with its own flag, as long as it allows dynamically adding things. 🙂

I wonder if this feature hasn’t been implemented because of restrictions or something?

Would be a w e s o m e. 🤓

Thanks and let me know if I can help somehow. :)

@myshov
Copy link
Owner

myshov commented Sep 5, 2018

@mixn hi!
Thank you for your interest in my project!

I was wondering if it would be useful/possible to allow adding a new layout dynamically

I was thinking about it some time ago. The solution is to read the list of all available layouts in macOS at runtime. And actually, this feature has one of the biggest priorities for further development of xkbswitch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants