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

View file

@ -59,6 +59,7 @@ endforeach
executable(
'foot',
'config.c', 'config.h',
'commands.c', 'commands.h',
'csi.c', 'csi.h',
'font.c', 'font.h',