dakyskye / dxhd

daky's X11 Hotkey Daemon
MIT License
99 stars 6 forks source link

a flag to analyse config #12

Closed dakyskye closed 4 years ago

dakyskye commented 4 years ago

-a flag to validate the config file. if it's not ok, print why it's not and print suggestions how to fix the problem.

dakyskye commented 4 years ago

I should probably wait until chords are implemented #8, since, it's gonna be the last thing to add to the configuration for now. When it's implemented, make a new function, which detects what type the binding is, and calls a set of new functions relevantly to parse them. Analyser function can also be useful for when the analyse flag is not provided, because now the parsing of config file happens in one huge function, which calls two other huge functions.

dakyskye commented 4 years ago

rewriting the parser, but not implementing this. is really unnecessary for a program like dxhd (at least for now).