我也来秀一下我的桌面, 顺便奉上我的conky设置
发表于 : 2010-10-06 21:06

在公司不得不用XP, 回到家我一般只在Ubuntu下玩, 还有 XP / Win7 是工作需要时才偶尔切换过去用用。
废话少说, 先上图。
代码: 全选
# ~/.conkyrc
# *** RHYTHMBOX FORMAT SETTINGS ***
# ${rhythmbox-client --print-playing}
# Print the title and artist of the playing song
# ${rhythmbox-client --print-playing-format}
# Print formatted details of the song
# *** PARAMETERS ***
# %at Album title
# %aT Album title in lowercase
# %aa Album artist
# %aA Album artist in lowercase
# %ay Release year of album
# %an Album disc number
# %aN Album disc number with leading zero
# %ag Album genre
# %aG Album genre in lowercase
# %tt Track title
# %tT Track title in lowercase
# %ta Track artist
# %tA Track artist in lowercase
# %tn Track number
# %tN Track number with leading zero
# %td Track duration
# %te Elapsed time of track
# Variables can be combined using quotes. For example "%tn %aa %tt", will
# print the track number followed by the artist and the title of the
# track.
background yes
use_xft yes
xftfont Terminus:size=10
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 10
maximum_width 210
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
#default_color white
#default_color AD7FA8
default_color FFFFFF
default_shade_color black
alignment top_right
gap_x 10
gap_y 30
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no
use_spacer none
TEXT
#${alignc 27}${font DotMatrix:style=Bold:size=18}${time %H:%M}${font #DotMatrix:size=10}:${time %S}${font}
#${alignc}${time %B} ${time %Y}
#${font DejaVu Sans Mono:size=8}${color}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color ff0000}'"$DJS"'${color}'" "/}${font}
距离 2011.01.01 还有: ${color #ff0000}${alignc}${exec echo $((($(date --date=2011-1-1 +%s)-$(date +%s))/86400))} ${color}天
Hostname ${color #FB0000} $alignr$nodename
${color #FFFFFF}System:${color #FB3000} ${alignr} ${execi 99999 lsb_release -d -s -c | tr -s "\n" " "}
${color #FFFFFF}Kernel: ${color #FB3C3C} $alignr $kernel
${color #FFFFFF}Uptime: ${color #0000CC} $alignr $uptime
#${if_existing /sys/class/net/eth0/operstate up}
${color #FFFFFF}LAN IP: ${color #FBC000} ${alignr} ${addr eth0}
#$else
${color #FFFFFF}Wireless IP:${color #FBF000}${alignr}${addr wlan0}(${wireless_link_qual_perc wlan0}%)
#$endif
${color #0000FF}${font 321impact:size=10}SYSTEM${font}$stippled_hr${color}
#${color #000066}Battery: ${alignr 5}${battery_bar 8,100 CMB1}
BatteryTime: ${alignr} ${color #FF0000}${battery_time CMB1}${color}
#${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}
CPU Bit:${alignr}${freq dyn}MHz
# Temp: ${acpitemp}°C
CPU1: ${cpu cpu1}% ${color #ff0000}${execi 30 sensors|grep 'Core 0'|cut -c15-16}°C${color} ${alignr}CPU2: ${cpu cpu2}% ${color #ff0000}${execi 30 sensors|grep 'Core 1'|cut -c15-16}°C${color}
${cpubar 4,95 cpu1}${alignr}${cpubar 4,95 cpu2}
# GPU: ${alignr}${execi 30 nvidia-settings -q [gpu:0]/GPUCoreTemp | grep '):' | awk '{print $4}' | sed 's/\.//'}C${color}
Processes: ${alignr} $processes ($running_processes running)
RAM: $alignr $mem/$memmax
${membar 3}
Swap: $alignr $swap / $swapmax
${swapbar 3}${color}
${if_running rhythmbox}${voffset 7}${font Webdings:regular:size=21}${color #ba55d3}Ø${voffset -7}${font Anklepants:regular:size=11}${color #5da5d3}Music
${voffset -10}${color #ffd700}${hr 1}$font$color
${color #ffe7ba}Title: ${font 文泉驿正黑:size=8}$color${execi 20 rhythmbox-client --no-start --print-playing-format "%tt"}
${color #ffe7ba}Album: ${font 文泉驿正黑:size=8}$color${execi 20 rhythmbox-client --no-start --print-playing-format "%at"}$alignr${color #ffe7ba} CD:$color${execi 20 rhythmbox-client --no-start --print-playing-format "%aN"}
${color #ffe7ba}Artist:${font 文泉驿正黑:size=8}$color ${execi 20 rhythmbox-client --no-start --print-playing-format "%aa"}$alignr${color #ffe7ba}Track:$color${execi 20 rhythmbox-client --no-start --print-playing-format "%tN"}
${color #ffe7ba}Time: ${color #0000ff}${execi 1 rhythmbox-client --no-start --print-playing-format "%te / %td"}$alignr${color #ffe7ba}Year: $color${execi 20 rhythmbox-client --no-start --print-playing-format "%ay"}
# ${color #ba55d3}${execbar sh ~/.conky/rhythmboxbar.sh}
${color #ffd700}${hr 1}$font$color$endif
${color #3400A4}HDD I/O: ${alignr} Temp: ${color #FF0000}${hddtemp}°C
${color #FFFFFF}Write: $diskio_write ${alignr}Read: $diskio_read
${diskiograph_write 5,95} ${alignr}${diskiograph_read 5,95}
#ROOT: $alignr ${fs_free /} / ${fs_size /}
#${fs_bar 3 /}
HOME: $alignr ${fs_free /home} / ${fs_size /home}
${fs_bar 3 /home}${color}
${if_existing /media/WINXP}/media/WINXP: $alignr ${fs_free /media/WINXP} / ${fs_size /media/WINXP}
${fs_bar 3 /media/WINXP}${color}$endif
${if_existing /media/DATA}/media/DATA: $alignr ${fs_free /media/DATA} / ${fs_size /media/DATA}
${fs_bar 3 /media/DATA}${color}$endif
${if_existing /media/MEDIA}/media/MEDIA: $alignr ${fs_free /media/MEDIA} / ${fs_size /media/MEDIA}
${fs_bar 3 /media/MEDIA}${color}$endif
${color #0000FF}${font 321impact:size=10}Networks${font}$stippled_hr${color}
${color #C42000}Down ${downspeed wlan0} k/s ${alignr}Up ${upspeed wlan0} k/s
${downspeedgraph wlan0 10,95} ${alignr}${upspeedgraph wlan0 10,95}
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}
${color #0000FF}${font 321impact:size=10}Top${font}$stippled_hr$
${color #00FFCC}Name ${alignr} PID CPU% MEM%${color}
${top name 1} ${alignr} ${font 321impact:size=8}${top pid 1} ${top cpu 1} ${top mem 1}${font}
${top name 2} ${alignr} ${font 321impact:size=8}${top pid 2} ${top cpu 2} ${top mem 2}${font}
${top name 3} ${alignr} ${font 321impact:size=8}${top pid 3} ${top cpu 3} ${top mem 3}${font}
${top name 4} ${alignr} ${font 321impact:size=8}${top pid 4} ${top cpu 4} ${top mem 4}${font}
${top name 5} ${alignr} ${font 321impact:size=8}${top pid 5} ${top cpu 5} ${top mem 5}${font}
${top name 6} ${alignr} ${font 321impact:size=8}${top pid 6} ${top cpu 6} ${top mem 6}${font}