折腾了一下conky配置, 目前暂时对自己折腾出来的效果比较满意啦.
效果:
配置文件 ~/.conkyrc:
# Based on conky-jc and the default .conkyrc.
# Original: Pengo (conky@pengo.us)
# Modified: Felix Yan (felixonmars@gmail.com)
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type overide
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no #Transparent background.
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer right
use_xft yes
# Update interval in seconds
update_interval .5
# Minimum size of text area
minimum_size 170 5
# Draw shades?
draw_shades no
# Draw borders around graphs
draw_graph_borders no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
xftfont Eurostile:size=10
xftalpha 0.7
#font arial
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 3
# border margins
border_margin 9
# border width
border_width 10
# Default colors and also border colors, grey90 == #e5e5e5
default_color grey
own_window_colour brown
own_window_transparent yes
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 15
gap_y 40
# stuff after 'TEXT' will be formatted on screen
top_name_width 12
TEXT
${font arial black:size=12}${color orange}SYSTEM${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
$nodename $kernel
${font arial black:size=9}UP: $font$uptime ${voffset -18}
${voffset 6}${font arial black:size=30}${time %e}$font ${voffset -17}${time %A, }${time %B} ${time %G}
${voffset -2}${goto 65}${font arial black:size=10} ${time %I:%M:%S %p}
${font arial black:size=12}${color orange}CPU${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=9}USAGE: $font${cpu cpu0}%
${cpugraph cpu0 C0C0C0 C0C0C0}
${font arial black:size=9}FAN: $font$color${ibm_fan}rpm${alignr}${font arial black:size=9}TEMP: $font$color${ibm_temps 0}℃
${font arial black:size=9}Name${goto 120} PID${goto 160} CPU${goto 200} MEM
${color #ddaa00}${top name 1}${goto 120}${top pid 1}${goto 160}${top cpu 1}${goto 200}${top mem 1}
${color lightgrey}${top name 2}${goto 120}${top pid 2}${goto 160}${top cpu 2}${goto 200}${top mem 2}
${color lightgrey}${top name 3}${goto 120}${top pid 3}${goto 160}${top cpu 3}${goto 200}${top mem 3}$color$font
${font arial black:size=12}${color orange}MEMORY${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=9}RAM: $font$memperc% ${alignr}$mem/$memmax
${membar}
${font arial black:size=9}SWAP: $font$swapperc% ${alignr}$swap/$swapmax
${swapbar}
${font arial black:size=12}${color orange}DISK${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=9}VOLUME${goto 80}FREE${alignr 1}SIZE$font
${font arial black:size=9}ROOT:$font${goto 80}${fs_free /}(${fs_free_perc /}%)${alignr}${fs_size /}
${fs_bar /}$color
${font arial black:size=12}${color orange}NETWORK${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=9}LOCAL:$font ${addr eth0}${color}
${font arial black:size=9}INTERNAL:$font ${execi 300 internalip.py}${color}
${font arial black:size=9}EXTERNAL:$font ${execi 300 curl ifconfig.me}${color}
${font arial black:size=9}DOWN: $font$color${downspeed eth0}/${totaldown eth0}
${downspeedgraph eth0 C0C0C0 C0C0C0}
${font arial black:size=9}UP: $font${upspeed eth0}/${totalup eth0}
${upspeedgraph eth0 C0C0C0 C0C0C0}$color
${font arial black:size=9}IN: $font${tcp_portmon 1 32767 count} ${font arial black:size=9}OUT: $font${tcp_portmon 32768 61000 count}${alignr}${font arial black:size=9}TOTAL: $font${tcp_portmon 1 65535 count}
${font arial black:size=12}${color orange}BATTERY${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${battery_bar}
${font arial black:size=9}STATE: $font$color${battery} $alignr ${battery_time}
其中脚本internalip.py的内容是:
#!/usr/bin/env python
import re,urllib
a = urllib.urlopen('http://www.ip138.com/ip2city.asp').read()
b = re.findall('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}', a)
print b[0]
大懒猫~ 好久没更新了呢~
本大懒猫在酝酿一篇很长的Android的….
我也来看看了。虽然也看不懂
路过了, conky好久没用过了呀, 都不想折腾它了
哈哈…折腾美…
来看看,虽然看不懂。。
另外获取IP用不着这么麻烦吧……
为了获取不同线路的IP
我看到了 TM.exe……
恩, Wine的
神猫,Q上我给你留言了 没回,告诉我Tag Cloud 你用的什么插件,还有就是代码高亮你用的是什么插件
Tag Cloud 是 WP-Cumulus
代码高亮是 WP-Syntax
好久没来踩猫咪了~
围观+欢迎moja
顺便BS一下Apple
pia!
回pia!