Giter Site home page Giter Site logo

Enable numlock on start up support about cage HOT 8 OPEN

otaj avatar otaj commented on June 28, 2024
Enable numlock on start up support

from cage.

Comments (8)

emersion avatar emersion commented on June 28, 2024 1

Yup.

from cage.

otaj avatar otaj commented on June 28, 2024 1

@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.

from cage.

otaj avatar otaj commented on June 28, 2024 1

Umm, the closing was unintentional, reopening again

from cage.

joggee-fr avatar joggee-fr commented on June 28, 2024

@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.

from cage.

emersion avatar emersion commented on June 28, 2024

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...

from cage.

joggee-fr avatar joggee-fr commented on June 28, 2024

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

from cage.

emersion avatar emersion commented on June 28, 2024

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.

from cage.

otaj avatar otaj commented on June 28, 2024

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

from cage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.