-
Notifications
You must be signed in to change notification settings - Fork 17
#196 implement DISABLED conditions: PLUGGED and UNPLUGGED #199
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
Conversation
|
Also... you have access to this repo, so you can push branches directly. |
3cec1ab to
02e6777
Compare
|
Sounds like progress.
I'll get back to you in my weekend way+displays timeslot.
|
alex-courtis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good: works as expected, doesn't leak, behaviour is intuitive.
This reverts commit ed93c48.
|
Sorry to second guess, but could we simplify DISABLED to use map keys for the monitor? DISABLED:
- LG Display 0x05EF:
IF:
- UNPLUGGED:
- XG349C
- MAG274QRF-QD |
|
We could, but I think that it would be better if |
Fair enough. It also serves to highlight that a condition is used rather than a string. |
|
I think that it's safe to say that this feature is done. If you don't have any further comments, I'll merge this PR into master. |
alex-courtis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let me know if you can't merge it.
What's next for you?
I've been thinking about #55. At least about some parts of it.
I am not a big fan of yaml, especially for IPC, but it's already there and it's better to embrace it than fight it. |
I also do not like building GUIs. wdisplays looks dead, it's GTK, and it's not of the greatest quality. A colleague recently recommend https://github.com/webui-dev/webui which would suit way-displays beautifully - it's c centric and handles calling c from/to js with ~0 effort. It does, however, still need someone to write the actual front end functionality. I'll update the issue and call for volunteers.
That'd be great; I think some users do want that.
Yes please, it's become very unwieldy. A move away from
yaml for config is something I've carried over several projects, starting with one that was a plugin to an existing framework that used yaml. I've warmed to it over the years - github actions and bitbucket pipelines work very well. Agreed on IPC; I lazily rushed that through when someone volunteered for a GUI but never came through. JSON isn't really any better than yaml. |
|
Let's both test this for a week then release 1.14.0 |
|
https://github.com/tlsa/libcyaml looks promising - c centric and very memory safe (configurable allocator). It was released after I first started using yaml-cpp |
There's also libyaml, which is currently maintained by the YAML community. It's used by multiple projects, so it should be already installed on the majority of systems. I personally think that |
|
Released https://github.com/alex-courtis/way-displays/releases/tag/1.14.0 Love your work! |
No description provided.