-
Notifications
You must be signed in to change notification settings - Fork 165
Command Line Interface #213
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
Comments
A lot of scripted control of the keyboard can already be done by echoing into the ckb device. Other functions for controlling the ckb itself from a command line (like start/stop animation, change profile etc) could be implemented through ckb command line options, just like you done with the pull #211, and could be a nice addition |
What I'm planning is that there will eventually be a way to pass commands to the GUI, like |
I tried to write out the grammar for the CLI analogously to the Top Level Command
Global Commands
Device Commands
I hope I didn't miss any. :) |
@fleischie Thanks for the BNF.
|
Looks good overall. Only part I'd change is this:
The current device-based profile system is going away. In future versions you'll be able to use the same profile for the keyboard and mouse simultaneously. So, for instance, you could bind a key on the keyboard to change DPI (which is currently impossible) and the mouse would update accordingly. It also means there won't really be a distinction between keyboards and mice; they'll simply be different devices with different properties. That being the case, what I think we should have:
and the device commands would include a command to get/set the current profile, by profile-id. Other than that I really like it :) |
OK, sounds legit. @ccMSC Do you have an estimate on when v0.3 is to be expected? I can start on the syntax implementation, make it allow the current profile system and adapt, when v0.3 is out. |
I am wondering how to approach this task. Should there be an I would like to have some feedback, because I am not decisive enough. :( |
I think I've considered splitting the actual UI into a separate module, but we already have two daemons (one root, one non-root) and I really don't want to make it three :P |
This is very helpful. I'll try to figure out a way to allow this workflow and report back. :) |
Hey, I am trying to manipulate the state of the keyboard (specifically I am trying to set the keyboard layout via So my question is: Do I use the static Note: I have the ckb-daemon and the ckb-gui running, while trying to manipulate the data. |
Nevermind. I have found the |
As was mentioned in Issue #80 there was the intention to implement a command line interface for
ckb
?ckb-cli
maybe?Are there any specific plans already in the making? Is there something in particular that can be done (by me for example)? :)
I would like to help and ... you know, help me help you. ;)
The text was updated successfully, but these errors were encountered: