From 0d1b4449b9268ad008852d38d3f7df544db7a410 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 16 Jul 2019 11:52:22 +0200 Subject: 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 --- config.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 config.h (limited to 'config.h') diff --git a/config.h b/config.h new file mode 100644 index 00000000..4215a80a --- /dev/null +++ b/config.h @@ -0,0 +1,8 @@ +#pragma once + +struct config { + char *font; +}; + +struct config config_load(void); +void config_free(struct config conf); -- cgit v1.3