friedow / centerpiece

Your trusty omnibox search.
MIT License
174 stars 6 forks source link

Configuration File #26

Open friedow opened 8 months ago

friedow commented 8 months ago

Add a configuration file and configuration options including sane defaults for current plugins.

Here are some configuration options we could start with:

friedow commented 6 months ago

@lassulus anything else wanted for the config file?

Lassulus commented 6 months ago

something to configure what items are shown and which actions they trigger? maybe something like this in nix style:

{ 
  hello = {
    action = "echo hello world";
    text = "hello"; # defaults to attrname
  };
  DNS = {
    action = "echo nameserver 8.8.8.8 > etc/resolv.conf";
    textScript = "cat /etc/resolv.conf | tail -1"; # will show this as label in the list, maybe updates it every X seconds?
  };
}
friedow commented 6 months ago

This sounds like the config part of https://github.com/friedow/centerpiece/issues/18.