秀一下我的超简洁的openbox+conky
发表于 : 2009-04-25 23:20
不多说,上图
代码: 全选
#avoid flicker
double_buffer yes
background yes
total_run_times 0
update_interval 4
#own window to run simultanious 2 or more conkys undecorate
own_window no
own_window_transparent yes
own_window_type normal
own_window_hints ,sticky,skip_taskbar,skip_pager
#position top top_left, top_right, bottom_left, bottom_right, or none
gap_x 30
gap_y 20
alignment bottom_left
#default_shade_color 000000
default_color 8f8f8f
own_window_colour 151515
draw_outline no
draw_borders no
border_margin 0
draw_shades no
use_xft yes
xftfont bauhaus:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 1220 370
mpd_host localhost
mpd_port 6600
#${swapbar 3, 140} :swap
TEXT
$font$mpd_status ${color e0e0e0}$mpd_artist, $mpd_album${font nec:bold size=20} $mpd_title
${time %d.%m.%Y %k:%M"%S}
$color${font} ${tcp_portmon 1 65535 lservice 9} ${tcp_portmon 1 65535 rhost 9} $alignr${tcp_portmon 1 65535 rip 9} ${tcp_portmon 1 65535 rservice 9}
${tcp_portmon 1 65535 lservice 8} ${tcp_portmon 1 65535 rhost 8} $alignr${tcp_portmon 1 65535 rip 8} ${tcp_portmon 1 65535 rservice 8}
${tcp_portmon 1 65535 lservice 7} ${tcp_portmon 1 65535 rhost 7} $alignr${tcp_portmon 1 65535 rip 7} ${tcp_portmon 1 65535 rservice 7}
${tcp_portmon 1 65535 lservice 6} ${tcp_portmon 1 65535 rhost 6} $alignr${tcp_portmon 1 65535 rip 6} ${tcp_portmon 1 65535 rservice 6}
${tcp_portmon 1 65535 lservice 5} ${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 rip 5} ${tcp_portmon 1 65535 rservice 5}
${tcp_portmon 1 65535 lservice 4} ${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 rip 4} ${tcp_portmon 1 65535 rservice 4}
${tcp_portmon 1 65535 lservice 3} ${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 rip 3} ${tcp_portmon 1 65535 rservice 3}
${tcp_portmon 1 65535 lservice 2} ${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 rip 2} ${tcp_portmon 1 65535 rservice 2}
${tcp_portmon 1 65535 lservice 1} ${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 rip 1} ${tcp_portmon 1 65535 rservice 1}
${tcp_portmon 1 65535 lservice 0} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 rip 0} ${tcp_portmon 1 65535 rservice 0}
${color e0e0e0}Port/Service Local Connection Inbound $color$alignr${color e0e0e0}Outbound Connection Remote Service/Port$color
$color Net: ${color e0e0e0}${font}${downspeed eth0} Kb/s $color ${totaldown eth0} Downloaded$color $alignr${color e0e0e0}$loadavg$color Loadavg${color e0e0e0} ${addr eth0}$color :IP
$color Net: $color${color e0e0e0}${upspeed eth0} Kb/s $color ${totalup eth0} Uploaded $alignr$color${membar 3, 140} ram
$color Net: ${color e0e0e0}${tcp_portmon 1 65535 count}$color TCP Connections $alignr${cpubar cpu0 3, 70} :cpu
$alignr${color e0e0e0}$font$diskio$color :Disk I/O
$color ${top name 1}${color e0e0e0}${top cpu 1}% ${top_mem mem 1}MiB$color ${top_mem name 1}
$color ${top name 2}${color e0e0e0}${top cpu 2}% ${top_mem mem 2}MiB$color ${top_mem name 2} $alignr$color ${mpd_bar 3, 150}
$color ${top name 3}${color e0e0e0}${top cpu 3}% ${top_mem mem 3}MiB$color ${top_mem name 3} $alignr${cpubar cpu1 3, 70} :cpu
$color CPU: ${color e0e0e0}$font$cpu%$color RAM: ${color e0e0e0}$font$mem$color SWAP: ${color e0e0e0}$font$swap$color Cached: ${color e0e0e0}$cached$color Buffered: ${color e0e0e0}$buffers $alignr$color Root: ${color e0e0e0}$font${fs_free /bin/bash} $color Home: ${color e0e0e0}$font${fs_free /home}$color Tmp: ${color e0e0e0}$font${fs_free /tmp} $color FsFree
$color CPU: ${color e0e0e0}$acpitemp째C$color GPU:${color e0e0e0}${execi 9 nvidia-settings -q GPUCoreTemp | grep -oE '[0-9]+\.$' | sed -e 's/\.//'}째C $alignr$color$mpd_bitrate kbps ${color e0e0e0}$font$mpd_smart$color $mpd_random $mpd_repeat${color e0e0e0} $mpd_status$color $mpd_elapsed-${color e0e0e0}$mpd_length $color MPD