docs and syntax for overwrite_file and append_file
authorNikolas Garofil <garo@dunaldi.garofil.be>
Thu, 12 Feb 2009 22:04:39 +0000 (23:04 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Thu, 12 Feb 2009 22:04:39 +0000 (23:04 +0100)
ChangeLog
doc/config_settings.xml
doc/conky.1
doc/conky.conf
extras/nano/conky.nanorc
extras/vim/syntax/conkyrc.vim

index 11e0819..e6b790b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-02-12
+       * Added overwrite_file and append_file
+
 2009-02-10
        * Added output_to_stderr
 
index 7e59df2..a0a75e8 100644 (file)
        </varlistentry>
 
        <varlistentry>
+               <term><command><option>overwrite_file</option></command>
+               </term>
+               <listitem>
+                       Overwrite the file given as argument.
+                       <para></para></listitem>
+       </varlistentry>
+
+       <varlistentry>
+               <term><command><option>append_file</option></command>
+               </term>
+               <listitem>
+                       Append the file given as argument.
+                       <para></para></listitem>
+       </varlistentry>
+
+       <varlistentry>
                <term><command><option>pad_percents</option></command></term>
                <listitem>
                        Pad percentages to this many decimals (0 = no padding)
index c3f24b9..d174aea 100644 (file)
@@ -327,6 +327,14 @@ Print text to stdout.
 Print text to stderr.
 
 .TP 
+\fB\*(T<\fBappend_file\fR\*(T>\fR 
+Append the file given as argument.
+
+.TP 
+\fB\*(T<\fBoverwrite_file\fR\*(T>\fR 
+Overwrite the file given as argument.
+
+.TP 
 \fB\*(T<\fBpad_percents\fR\*(T>\fR
 Pad percentages to this many decimals (0 = no padding)
 
index b5843d2..55630c8 100644 (file)
@@ -31,6 +31,12 @@ xftalpha 0.8
 # ... or maybe to stderr ?
 # out_to_stderr no
 
+# ... or a file ?
+#overwrite_file /this/file/will/contain/the/last/entry
+
+# ... or append to a file so you won't lose the last entry ?
+#append_file /this/file/will/contain/all/entries
+
 # MPD host/port
 # mpd_host localhost
 # mpd_port 6600
index e6362fa..4e99726 100644 (file)
@@ -5,7 +5,7 @@
 syntax "conky" "(\.*conkyrc.*$|conky.conf)"
 
 ## Configuration items
-color green "\<(alignment|background|show_graph_range|show_graph_scale|border_margin|border_width|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|default_color|default_shade_color|default_shadecolor|default_outline_color|default_outlinecolor|imap|pop3|mpd_host|mpd_port|mpd_password|music_player_interval|sensor_device|cpu_avg_samples|net_avg_samples|double_buffer|override_utf8_locale|draw_borders|draw_graph_borders|draw_shades|draw_outline|out_to_console|out_to_stderr|use_spacer|use_xft|font|xftalpha|xftfont|use_xft|gap_x|gap_y|mail_spool|minimum_size|maximum_width|no_buffers|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|top_cpu_separate|short_units|pad_percents|own_window|own_window_class|own_window_title|own_window_transparent|own_window_colour|own_window_hints|own_window_type|stippled_borders|temp1|temp2|update_interval|total_run_times|uppercase|max_specials|max_user_text|text_buffer_size|max_port_monitor_connections)\>"
+color green "\<(alignment|background|show_graph_range|show_graph_scale|border_margin|border_width|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|default_color|default_shade_color|default_shadecolor|default_outline_color|default_outlinecolor|imap|pop3|mpd_host|mpd_port|mpd_password|music_player_interval|sensor_device|cpu_avg_samples|net_avg_samples|double_buffer|override_utf8_locale|draw_borders|draw_graph_borders|draw_shades|draw_outline|out_to_console|out_to_stderr|overwrite_file|append_file|use_spacer|use_xft|font|xftalpha|xftfont|use_xft|gap_x|gap_y|mail_spool|minimum_size|maximum_width|no_buffers|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|top_cpu_separate|short_units|pad_percents|own_window|own_window_class|own_window_title|own_window_transparent|own_window_colour|own_window_hints|own_window_type|stippled_borders|temp1|temp2|update_interval|total_run_times|uppercase|max_specials|max_user_text|text_buffer_size|max_port_monitor_connections)\>"
 
 ## Configuration item constants
 color yellow "\<(above|below|bottom_left|bottom_right|bottom_middle|desktop|dock|no|none|normal|override|skip_pager|skip_taskbar|sticky|top_left|top_right|top_middle|middle_left|middle_right|undecorated|yes)\>"
index 311770f..e460a14 100644 (file)
@@ -51,6 +51,8 @@ syn keyword ConkyrcSetting
                        \ draw_outline
                        \ out_to_console
                        \ out_to_stderr
+                       \ overwrite_file
+                       \ append_file
                        \ use_spacer
                        \ use_xft
                        \ font