Keruspe / Germinal

Minimalist vte-based terminal emulator
GNU General Public License v3.0
65 stars 6 forks source link

Support for text-based config file #13

Closed julientechdev closed 5 years ago

julientechdev commented 5 years ago

Currently Germinal is configured via Gsettings and it works well with instantaneous changes of the config.

But for those of us not running the GNOME stack (sway in my case but any tiling wm is the same) and/or managing our dotfiles via git so it can be easily shared accross machines, a simple config file in $XDG_CONFIG_HOME/Germinal/config would be awesome.

The logic could be: Use Gsettings if no config file is present, override if present.

sardemff7 commented 5 years ago

A simpler approach could be to use GSettings KeyFile backend. I never tested it (and still I am using i3 ;-) ) but it should either be as simple as exporting G_SETTINGS_BACKEND=keyfile or require a small change in Germinal to explicitly request that backend (based on whatever condition feels best).

Keruspe commented 5 years ago

I see two "simple" possibilities here:

I'd be ok with those two, but I won't ever do hot reloading of configuration based on the filesystem. It's just not reliable.

Keruspe commented 5 years ago

Actually the first one should be quite easy to implement, will do it later