conf: initial support for configuration file

* Look for configuration file in (in this order):
  - XDG_CONFIG_HOME/footrc
  - ~/.config/footrc
* Currently supports setting the font
This commit is contained in:
Daniel Eklöf 2019-07-16 11:52:22 +02:00
parent 22115e1cf4
commit 0d1b4449b9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 200 additions and 7 deletions

8
config.h Normal file
View file

@ -0,0 +1,8 @@
#pragma once
struct config {
char *font;
};
struct config config_load(void);
void config_free(struct config conf);