From cccee1518e11655ad409ff9d555e1416ac2d0faf Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Tue, 15 Feb 2011 12:23:13 +0100 Subject: [PATCH] Improve doc and examples --- README | 2 +- examples/profile | 14 +++++++++----- examples/tagdisplay | 24 ++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 examples/tagdisplay diff --git a/README b/README index 1ce3648..c177bcd 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ Profile A profile in a set of configuration options. cc-cli support FreeDesktop BaseDirectory specifications, see http://standards.freedesktop.org/basedir-spec/0.6/ to store his config files. -Profiles are stored in ~/.config/cc-cli/profile. This file format is ini where +Profiles are stored in ~/.config/cc-cli/profile. This file format is ini in which every profile is a section. cc-cli load at every start the cli profile. You can specify a default profile in cli profile with option "profile". diff --git a/examples/profile b/examples/profile index 3603cfa..7e13fbe 100644 --- a/examples/profile +++ b/examples/profile @@ -1,6 +1,10 @@ -# this is the default profile -[cli] +# Options in this section is loaded is each others section +[DEFAULT] hsize = 1000 +#debug = true + +# This section is loaded at start +[cli] profile = lab [lab] @@ -8,9 +12,9 @@ login = sluttrin pass = toto server = 192.168.0.162 -[preprod] -login = seblu -pass = sex +[amillet] +login = sluttrin +pass = chiche server = 192.168.0.41 debug = true diff --git a/examples/tagdisplay b/examples/tagdisplay new file mode 100644 index 0000000..9aa42d2 --- /dev/null +++ b/examples/tagdisplay @@ -0,0 +1,24 @@ +[color] +a = lpurple +h = lred +pop = lyellow +mem* = lyellow +r = red +id = lblue +cpu = lyellow +con = cyan + +[titlecolor] +h = red +id = cyan + +[type] +uptime = second +con = second +disk* = si +sto* = si +mem* = bit + +[option] +quotespace = 1 + -- GitLab