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

Enable numlock on start up support #289

Open
otaj opened this issue Nov 15, 2023 · 8 comments
Open

Enable numlock on start up support #289

otaj opened this issue Nov 15, 2023 · 8 comments

Comments

@otaj
Copy link

otaj commented Nov 15, 2023

Hi, thank you for the amazing compositor! I use it as a minimal compositor to run regreet for a small login manager. However, I'd appreciate, if it would be possible to enable numlock automatically on start up as I make frequent use of numeric keyboard if it's available. Yes, I can enable it myself, however I often forget about it and then have to try login twice.

Thanks a lot!

@joggee-fr
Copy link
Collaborator

@otaj
Do you know which backend you are using when running Cage (DRM, Wayland, X)?
Is it possible to manage numlock activation in the script (or systemd unit or idk) starting Cage? Activating numlock on bootup from ArchWiki.

@emersion
Copy link
Contributor

Ideally we'd provide a way (CLI flag or protocol or config file or something else) to configure input devices and this would be part of it...

@joggee-fr
Copy link
Collaborator

@emersion, is it related to issue #138 (and possibly also issue #252) ?

@emersion
Copy link
Contributor

Yup.

@otaj
Copy link
Author

otaj commented Nov 16, 2023

@joggee-fr: I'd expect either DRM or Wayland. Definitely not X. However, configuring input methods is a responsibility of a compositor under Wayland - therefore, to answer your second question, even if I set it up at startup, compositor (in this case Cage) "overrides" it.

For some reason, wayland does not have any protocol for managing input devices, such as setting keyboard configuration. @emersion, therefore that means that protocol is a no-go, since AFAIK there isn't any. Sadly, this interesting project doesn't have support for numlock as well. So the only remaining option is to either use env variable, CLI flag or config file.

@otaj otaj closed this as completed Nov 16, 2023
@otaj
Copy link
Author

otaj commented Nov 16, 2023

Umm, the closing was unintentional, reopening again

@otaj otaj reopened this Nov 16, 2023
@emersion
Copy link
Contributor

For some reason, wayland does not have any protocol for managing input devices, such as setting keyboard configuration.

It's not a no-go, it's just a bit of work. Wayland did not have a protocol to configure output devices until we added one.

@otaj
Copy link
Author

otaj commented Nov 16, 2023

For some reason, wayland does not have any protocol for managing input devices, such as setting keyboard configuration.

It's not a no-go, it's just a bit of work. Wayland did not have a protocol to configure output devices until we added one.

That's a fair point and to be honest, it might have been the best possible option in the long run, since then the input configuration would be compositor-independent. On the other hand, I have 0 experience with proposing and implementing wayland protocols

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

3 participants