devlog #6 - CONFIGURATION!!!
adding a config file has been in the next steps of just about every devlog i’ve made, and i finally got around to doing it!
config.toml
nwwm wouldn’t be a cliche rust project without a config.toml. but in all seriousness, i really like toml as a configuration language and it integrates really cleanly with rust anyway. so far, you can set parameters like window border, mod key, and default layout in $HOME/.config/nwwm/config.toml and nwwm will read those and apply them at runtime. unfortunately, config isn’t reloadable at the moment (next step?). you can also configure keybinds and even startup commands! i would really have liked to have lua scripting as a config but it’s just a bit too hard for a first wm project. the error handling is pretty hairy at the moment but i’ll fix that soon i promise
other stuff i’ve changed
not much else happened, but i added a feature where debug logging only happens if you run nwwm with -v or --verbose.
next steps
- better error handling in config loading
- config reloading at runtime
- better documentation (maybe a website?)
Comments 1
how did you set the statuslines to different colors? did you use two different configs?
Sign in to join the conversation.