我也来conky一把

conky是一个非常好的桌面监视系统,一直想装,可是又怕麻烦,放假了,终于有空可以来conky一把了,也是好好学习的机会,半天下来,桌面配置成这样了,先来放个图。

 

 

闲话少叙,再来把我的配置文件写上。

 

1 # set to yes if you want Conky to be forked in the background
2  background yes
3
4 cpu_avg_samples 2
5 net_avg_samples 2
6
7 out_to_console no
8
9  # X font when Xft is disabled, you can pick one with program xfontsel
10 #font 7x12
11 #font 6x10
12 #font 7x13
13 #font 8x13
14 #font 7x12
15 #font *mintsmild.se*
16 #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
17 #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
18
19 # Use Xft?
20  use_xft yes
21
22  # Xft font when Xft is enabled
23  xftfont Sans:size=8
24
25 own_window_transparent no
26 #own_window_colour hotpink
27 # Text alpha when using Xft
28 xftalpha 0.8
29
30 # on_bottom yes
31
32 # mail spool
33 mail_spool $MAIL
34
35 # Update interval in seconds
36 update_interval 1
37 # Create own window instead of using desktop (required in nautilus)
38 own_window yes
39 own_window_transparent yes
40 own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
41 own_window_type override
42
43 # Use double buffering (reduces flicker, may not work for everyone)
44 double_buffer yes
45
46 # Minimum size of text area
47 minimum_size 260 5
48 maximum_width 400
49
50 # Draw shades?
51 draw_shades no
52
53 # Draw outlines?
54 draw_outline no
55
56 # Draw borders around text
57 draw_borders no
58
59 # Stippled borders?
60 stippled_borders no
61
62 # border margins
63 border_margin 4
64
65 # border width
66 border_width 1
67
68 # Default colors and also border colors
69 default_color white
70 default_shade_color white
71 default_outline_color white
72
73 # Text alignment, other possible values are commented
74 #alignment top_left
75 #minimum_size 10 10
76 gap_x 15
77 gap_y 70
78 alignment top_right
79 #alignment bottom_left
80 #alignment bottom_right
81
82 # Gap between borders of screen and text
83
84 # Add spaces to keep things from moving about? This only affects certain objects.
85 use_spacer none
86
87 # Subtract file system buffers from used memory?
88 no_buffers yes
89
90 # set to yes if you want all text to be in uppercase
91 uppercase no
92
93 # none, xmms, bmp, audacious, infopipe (default is none)
94 # xmms_player bmp
95
96 # boinc (seti) dir
97 # seti_dir /opt/seti
98
99 # Possible variables to be used:
100 #
101 # Variable Arguments Description
102 # acpiacadapter ACPI ac adapter state.
103 # acpifan ACPI fan state
104 # acpitemp ACPI temperature.
105 # adt746xcpu CPU temperature from therm_adt746x
106 # adt746xfan Fan speed from therm_adt746x
107 # battery (num) Remaining capasity in ACPI or APM
108 # battery. ACPI battery number can be
109 # given as argument (default is BAT0).
110 # buffers Amount of memory buffered
111 # cached Amount of memory cached
112 # color (color) Change drawing color to color
113 # cpu CPU usage in percents
114 # cpubar (height) Bar that shows CPU usage, height is
115 # bar's height in pixels
116 # downspeed net Download speed in kilobytes
117 # downspeedf net Download speed in kilobytes with one
118 # decimal
119 # exec shell command Executes a shell command and displays
120 # the output in torsmo. warning: this
121 # takes a lot more resources than other
122 # variables. I'd recommend coding wanted
123 # behaviour in C and posting a patch :-).
124 # execi interval, shell Same as exec but with specific interval.
125 # command Interval can't be less than
126 # update_interval in configuration.
127 # fs_bar (height), (fs) Bar that shows how much space is used on
128 # a file system. height is the height in
129 # pixels. fs is any file on that file
130 # system.
131 # fs_free (fs) Free space on a file system available
132 # for users.
133 # fs_free_perc (fs) Free percentage of space on a file
134 # system available for users.
135 # fs_size (fs) File system size
136 # fs_used (fs) File system used space
137 # hr (height) Horizontal line, height is the height in
138 # pixels
139 # i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
140 # may be omitted if you have only one I2C
141 # device. type is either in (or vol)
142 # meaning voltage, fan meaning fan or temp
143 # meaning temperature. n is number of the
144 # sensor. See /sys/bus/i2c/devices/ on
145 # your local computer.
146 # kernel Kernel version
147 # loadavg (1), (2), (3) System load average, 1 is for past 1
148 # minute, 2 for past 5 minutes and 3 for
149 # past 15 minutes.
150 # machine Machine, i686 for example
151 # mails Mail count in mail spool. You can use
152 # program like fetchmail to get mails from
153 # some server using your favourite
154 # protocol. See also new_mails.
155 # mem Amount of memory in use
156 # membar (height) Bar that shows amount of memory in use
157 # memmax Total amount of memory
158 # memperc Percentage of memory in use
159 # new_mails Unread mail count in mail spool.
160 # nodename Hostname
161 # outlinecolor (color) Change outline color
162 # pre_exec shell command Executes a shell command one time before
163 # torsmo displays anything and puts output
164 # as text.
165 # processes Total processes (sleeping and running)
166 # running_processes Running processes (not sleeping),
167 # requires Linux 2.6
168 # shadecolor (color) Change shading color
169 # stippled_hr (space), Stippled (dashed) horizontal line
170 # (height)
171 # swapbar (height) Bar that shows amount of swap in use
172 # swap Amount of swap in use
173 # swapmax Total amount of swap
174 # swapperc Percentage of swap in use
175 # sysname System name, Linux for example
176 # time (format) Local time, see man strftime to get more
177 # information about format
178 # totaldown net Total download, overflows at 4 GB on
179 # Linux with 32-bit arch and there doesn't
180 # seem to be a way to know how many times
181 # it has already done that before torsmo
182 # has started.
183 # totalup net Total upload, this one too, may overflow
184 # updates Number of updates (for debugging)
185 # upspeed net Upload speed in kilobytes
186 # upspeedf net Upload speed in kilobytes with one
187 # decimal
188 # uptime Uptime
189 # uptime_short Uptime in a shorter format
190 #
191 # seti_prog Seti@home current progress
192 # seti_progbar (height) Seti@home current progress bar
193 # seti_credit Seti@hoome total user credit
194
195
196 # variable is given either in format $variable or in ${variable}. Latter
197 # allows characters right after the variable and must be used in network
198 # stuff because of an argument
199 #${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
200 #${font Verdana:size=10}as many times as I choose
201 #${font Perry:size=10}Including UTF-8,
202 # stuff after 'TEXT' will be formatted on screen
203 #${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
204
205
206 TEXT
207 ${color white}SYSTEM ${hr 1}${color}
208
209 Hostname: $alignr$nodename
210 Kernel: $alignr$kernel
211 Uptime: $alignr$uptime
212 Temp: ${alignr}${acpitemp}°C
213
214 CPU: ${alignr}${freq dyn} MHz
215 Processes: ${alignr}$processes ($running_processes running)
216 Load: ${alignr}$loadavg
217
218 CPU1 ${alignr}${cpu cpu1}%
219 ${cpubar 4 cpu1}
220 CPU2 ${alignr}${cpu cpu2}%
221 ${cpubar 4 cpu2}
222
223 Ram ${alignr}$mem / $memmax ($memperc%)
224 ${membar 4}
225 swap ${alignr}$swap / $swapmax ($swapperc%)
226 ${swapbar 4}
227
228 Highest CPU $alignr CPU% MEM%
229 ${top name 1}$alignr${top cpu 1} ${top mem 1}
230 ${top name 2}$alignr${top cpu 2} ${top mem 2}
231 ${top name 3}$alignr${top cpu 3} ${top mem 3}
232
233 Highest MEM $alignr CPU% MEM%
234 ${top_mem name 1}$alignr${top_mem cpu 1} ${top_mem mem 1}
235 ${top_mem name 2}$alignr${top_mem cpu 2} ${top_mem mem 2}
236 ${top_mem name 3}$alignr${top_mem cpu 3} ${top_mem mem 3}
237
238 ${color white}FILE SYSTEM ${hr 1}${color}
239
240 Root: ${alignr}${fs_free /} / ${fs_size /}
241 ${fs_bar 4 /}
242 Home: ${alignr}${fs_free /home} / ${fs_size /home}
243 ${fs_bar 4 /home}
244
245 ${color white}NETWORK ${hr 1}${color}
246
247 Down ${downspeed wlan0} k/s ${alignr}Up ${upspeed wlan0} k/s
248 ${downspeedgraph wlan0 25,107} ${alignr}${upspeedgraph wlan0 25,107}
249 Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}
250
251 ${color white}WEATHER ${hr 1}${color}
252
253 ${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=CN}
254 ${font Weather:size=44}${color gold}${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=CC}${offset 10}${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=HT}${offset 10}${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=WS} ${font Arrows:size=10}${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=BF}$font
255 ${offset 60}Sol: ${color}${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=SR}-${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=SS}
256 ${font Weather:size=26}${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
257 ${execi 3600 python ~/.conkydir/conkyForecast.py --location=CHXX0101 --datatype=HT --startday=1 --endday=4 --spaces=11}

 

代码里不少一段都是参考别人的。自己稍加配置了一下。挺喜欢的。

posted @ 2010-02-07 16:27  行走的麦哥  阅读(12216)  评论(6编辑  收藏  举报