zoukankan      html  css  js  c++  java
  • conky 1.10以后的新配置格式

    1. 包装 config
      conky.config = { ... }

    2. 包装 TEXT

       conky.text = [[ ... ]]
      
    3. 每个 config 选项的变量和取值之间插入 "=",原来是空格。

    4. 每个 config 选项用 "," 结束。

    5. 用 true 代替 yes,用 no 代替 false。

    6. 除了数值以及 true 和 false,其他值例如字符串要用 "" 符号包括。

    7. 注释语句用 "--" 代替原来的 "#"。

    例如(参考文件 usrsharedocconky-1.10.1_preconky.conf):

    -- vim: ts=4 sw=4 noet ai cindent syntax=lua
    --[[
    Conky, a system monitor, based on torsmo
    
    Any original torsmo code is licensed under the BSD license
    
    All code written since the fork of torsmo is licensed under the GPL
    
    Please see COPYING for details
    
    Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
    Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
    All rights reserved.
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    ]]
    
    conky.config = {
        alignment = 'top_left',
        background = false,
        border_width = 1,
        cpu_avg_samples = 2,
    	default_color = 'white',
        default_outline_color = 'white',
        default_shade_color = 'white',
        draw_borders = false,
        draw_graph_borders = true,
        draw_outline = false,
        draw_shades = false,
        use_xft = true,
        font = 'DejaVu Sans Mono:size=12',
        gap_x = 5,
        gap_y = 60,
        minimum_height = 5,
    	minimum_width = 5,
        net_avg_samples = 2,
        no_buffers = true,
        out_to_console = false,
        out_to_stderr = false,
        extra_newline = false,
        own_window = true,
        own_window_class = 'Conky',
        own_window_type = 'desktop',
        stippled_borders = 0,
        update_interval = 1.0,
        uppercase = false,
        use_spacer = 'none',
        show_graph_scale = false,
        show_graph_range = false
    }
    
    conky.text = [[
    ${scroll 16 $nodename - $sysname $kernel on $machine | }
    $hr
    
  • 相关阅读:
    PHPCMS实现文章置顶功能的方法
    phpcms v9栏目列表调用每一篇文章内容方法1
    phpcms v9使用GET调用指定id文章内容、页面数据方法
    PHPCMS GET标签使用
    PHPCMS栏目调用2
    PHPCMS二层栏目调用
    PHPCMS get当中使用limit
    phpcms栏目调用
    WAMP学习日记之:Apache发布php网站
    用Apache实现一个ip虚拟多个web站点
  • 原文地址:https://www.cnblogs.com/ccpaging/p/5187714.html
Copyright © 2011-2022 走看看