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

Feature: use libconfig to load a config file to set VID/PID of mouse/keyboard #6

Open
Gadgetoid opened this issue Oct 13, 2021 · 0 comments

Comments

@Gadgetoid
Copy link
Owner

Since libconfig is already a dependency and provides some nice config file handling, I propose the following config file format:

# Pi 400 Keyboard/Mouse Config File

version = "1.0";

application:
{
  keyboard:
  {
    vid = 0x04d9;
    pid = 0x0007;
    device_path = "/dev/input/by-id/usb-_Raspberry_Pi_Internal_Keyboard-event-kbd";
  };

  mouse:
  {
    vid = 0x093a;
    pid = 0x2510;
    device_path = "/dev/input/by-id/usb-PixArt_USB_Optical_Mouse-event-mouse";
  };
};

A path to the config file could be passed to pi400kb on the command-line.

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

1 participant