Ubuntu系统一个简单的conky配置示例

Ubuntu系统一个简单的conky配置示例:

# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Lucida Console:size=9

# Text alpha when using Xft
xftalpha 0.8

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 5.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window no

# If own_window is yes, you may use type normal, desktop or override
own_window_type normal

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink

# If own_window is yes, these window manager hints may be used
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer no

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color black
#default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 128
gap_y 2

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Maximum size of buffer for user text, i.e. below TEXT line.
#max_user_text 16384

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
#min_port_monitors 16

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
#min_port_monitor_connections 256

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

TEXT
* Time: ${time %a/%b/%d} ${time %k:%M:%S} * Uptime: $uptime * Load: $loadavg * Batt: ${battery} * CPU: ${cpu}% * RAM: $memperc% * Swap: $swapperc% *
* Proc: Processes-$processes Running-$running_processes * Network: UP-${upspeed eth1}K/s Down-${downspeed eth1}K/s * Temperatures: CPU-${acpitemp}C * $nodename@$sysname $kernel *

效果图如下:

时间: 2024-07-28 21:27:07

Ubuntu系统一个简单的conky配置示例的相关文章

Ubuntu系统吴广德的conkyrc配置示例

要点:1.安装conky和mpd,命令sudo apt-get install conky mpd2.已安装雅黑字体,将msyh.ttf和msyhbd.ttf都拷贝到/usr/share/fonts/msyh目录下,然后执行命令sudo fc-cache -fv3.在用户家目录下新建文件名为.conkyrc的空文件,将以下代码复制进去,并保存即可启动conky4.自启动在"系统-首选项-会话"中添加 代码如下: use_spacer rightuse_xft yesfont http:

一个简单的 CORBA/java 示例

示例 6 月份,我们谈过您为什么要使用 CORBA 和 Java 技术.本月,我要通过一个可用的简单示例,让您开始探索 CORBA 技术的许多领域.不过,别忘了我们的目标是,创建这样一种分布式应用程序:使驻留在一台计算机上的客户机能向运行于另一台计算机上的服务发出请求.我们不想为诸如硬件或操作系统软件等细节问题操心,而只是想让这种服务能响应客户机的请求. IDL 接口 全部 CORBA 结构是从一个接口开始的,理解接口的最佳方法就是想像我的汽车,对,我的汽车.虽然您不熟悉它,但如果我对您说:"开

一个简单的Java死锁示例(转)

在实际编程中,要尽量避免出现死锁的情况,但是让你故意写一个死锁的程序时似乎也不太简单(有公司会出这样的面试题),以下是一个简单的死锁例子,程序说明都写着类的注释里了,有点罗嗦,但是应该也还是表述清楚了的. [code=java] /*** 一个简单的死锁类* @author iStar* 当类的对象flag=1时(T1),先锁定O1,睡眠500毫秒,然后锁定O2:* 而T1在睡眠的时候另一个flag=0的对象(T2)线程启动,先锁定O2,睡眠500毫秒,等待T1释放O1:* T1睡眠结束后需要锁

servlet简单用法和配置示例及说明

学习原因和目的: 我如今所接触的项目都是bs模式的web应用,而里边基本上都是用的spring MVC和前台交互,servlet貌似用的很少. 但是即便是用spring和spring MVC,项目中依旧是少不了web.xml文件,而这里边的配置看来看去根本就是servlet的配置. 因此为了更好的理解这些配置,我想还是需要从servlet入手. servlet在百度中的解释是: 用Java编写的服务器端程序.其主要功能在于交互式地浏览和修改数据,生成动态Web内容.狭义的Servlet是指Jav

[晕眩] 一个简单的SpringAOP配置,但怎么也出不来~

问题描述 本人有一个Action,然后调用它的forMain()方法的之前,希望用AOP给个小通知.但是很奇怪,启动服务之后,Spring读取也成功了,但就是当webwork调用Action时就是不理睬我配置的BeforeAdvice.不知道是我理解错误还是配置错误.请各位高手帮我看看-Action代码:public class AdjustTransactionAction extends ActionSupport {public String forMain() throws Except

ubuntu 系统 sublime text3中文输入配置

环境 ubuntu 16.04 amd64 sublime text3 准备工作 #安装 libgtk2.0-dev ,否则报错,No package 'gtk+-2.0' found : apt-get install libgtk2.0-dev 编译工作 1. 编辑 sublime_imfix.c #include <gtk/gtkimcontext.h>    void gtk_im_context_set_client_window (GtkIMContext *context,   

利用PHP实现一个简单的用户登记表示例

一.展示单行的用户信息表 首先我们需要创建两个文件,一个为html文件,一个为php文件. 这里博主就创建了form.html和formHandle.php两个文件. 下面展示一下两个文件的内容: form.html的文件内容: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body>

windows系统下简单nodejs安装及环境配置_javascript技巧

相信对于很多关注javascript发展的同学来说,nodejs已经不是一个陌生的词眼.有关nodejs的相关资料网上已经铺天盖地.由于它的高并发特性,造就了其特殊的应用地位. 国内目前关注最高,维护最好的一个关于nodejs的网站应该是http://www.cnodejs.org/  这里不想谈太多的nodejs的相关信息.只说一下,windows系统下简单nodejs环境配置. 第一步:下载安装文件 下载地址:官网http://www.nodejs.org/download/    这里用的

入侵检测-关于一个简单的堆栈例子

问题描述 关于一个简单的堆栈例子 我在读一本入侵检测技术的书,看到一个简单的堆栈溢出示例,看不懂,请各位大神解释一下是什么意思 解决方案 简单说就是通过程序编写的不严格,使局部变量溢出从而覆盖掉堆栈上的返回值.调用一个函数时,以__stdcall为例,先把参数入栈,然后时返回地址入栈, CPU执行现场跳转到函数中 ,然后是ebp寄存器入栈,随后局部变量和寄存器入栈,不同的编译器可能会有所差别,比如微软CL编译器在处理Debug和Release时是有一些区别的,但大致是相同的,溢出攻击,简单说就是