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

run as a service, read user config #1

Open
bambash opened this issue Jul 26, 2019 · 0 comments
Open

run as a service, read user config #1

bambash opened this issue Jul 26, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@bambash
Copy link
Owner

bambash commented Jul 26, 2019

I would be neat to run the binary as a service at startup, that watches a config file. This would remove the sudo requirements when running the binary, and give customization per user.

features:

  • generate an example config
  • generate a systemd service
  • when running the binary, the config file updates
- region: <left | right | center | extra | all>
  color: <hex or string>
  pattern:
brightness:

example usage:

$ sys76-kb create config --values ....
writing example config to <path>

$ sys76-kb create service ....
creating systemd service <....>

$ sys76-kb service reload 
reloading sys76-kb service

## service side
$ sys76-kb watch <path>
watching <path>

## client side
$ sys76-kb set ....
updating config file
@bambash bambash added the enhancement New feature or request label Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant