分页: 1 / 2

我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-06 21:06
wongmokin
:em11

在公司不得不用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}

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-06 21:21
wongmokin
都是参考大家的配置来修改的, 有几个地方请大家注意。

电池时间 BatteryTime: 这里,不同的笔记本可能会不同, 比如我的就不是默认的 BAT0 和 BAT1, 在终端下查看自己电脑的是什么再对应修改

代码: 全选

/myname$ ls -aplh /proc/acpi/battery/

dr-xr-xr-x  4 root root 0 2010-10-06 21:11 ./
dr-xr-xr-x 11 root root 0 2010-10-06 18:40 ../
dr-xr-xr-x  2 root root 0 2010-10-06 21:11 CMB1/
dr-xr-xr-x  2 root root 0 2010-10-06 21:11 CMB2/
所以我的是 BatteryTime: ${alignr} ${color #FF0000}${battery_time CMB1}${color}


CPU 温度 这里, 因为我的直接用acpitemp取得的不正确,所以用sensors检查并截取相应的字串

代码: 全选

/myname$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:       +26.8°C  (crit = +100.0°C)                  
temp2:       +26.8°C  (crit = +100.0°C)                  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +59.0°C  (high = +100.0°C, crit = +100.0°C)  

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +59.0°C  (high = +100.0°C, crit = +100.0°C)
两个cpu的温度分别是 Core 0 Core 1 那里, 所以我的conky语句是用这个来取得温度字串 ${execi 30 sensors|grep 'Core 0'|cut -c15-16}


${if} $else $endif 判断语句用好了, 很有用

${if_running rhythmbox} 假如运行了 rhythmbox 程序。。。。。。

${if_existing /media/WINXP} 假如存在 /media/WINXP 目录 。。。。。。


我的配置当中, 对有线和无线的判断没有使用上, 需要的请根据以上说明及配置自行修改。

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-06 21:25
wongmokin
pocoyo 写了:我就不打击你了
:em03 欢迎大力打击并提出改进意见

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-06 22:23
walker4
conky颜色太杂太乱反倒不协调不好看
面板和桌面也乱。。。本帖特色:乱 :em04

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-06 23:37
易水刃
我只想把docky当面板 :em09

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-07 1:03
枫叶饭团
让我用我的桌面来深深的打击LZ吧

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-07 9:00
owwbu
枫叶饭团 写了:让我用我的桌面来深深的打击LZ吧
我也就不打击你了。这背景让底下的面板显得很难看。特别菜单按钮、快速启动栏和系统托盘栏处,背景上的白色字让这些地方显得像是一个一地垃圾的地方。
你这个背景用的可比kde默认的背景难看多了。

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-07 9:08
owwbu
wongmokin 写了::em11

在公司不得不用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}
也不知道 kernel呀,system呀这些东西有啥好显示的。徒占地方。

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-07 12:50
amarok
呵呵,打击和被打击!

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-07 21:02
枫叶饭团
owwbu 写了:
枫叶饭团 写了:让我用我的桌面来深深的打击LZ吧
我也就不打击你了。这背景让底下的面板显得很难看。特别菜单按钮、快速启动栏和系统托盘栏处,背景上的白色字让这些地方显得像是一个一地垃圾的地方。
你这个背景用的可比kde默认的背景难看多了。
唉,看来没人懂我啊 :em06

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-09 11:33
东方不坏
原始桌面,很好用。

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-15 13:54
corer
我也上我的桌面,来打击我吧~

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-10-15 17:48
bzimage
枫叶饭团 写了:让我用我的桌面来深深的打击LZ吧
好痛 :em20

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-12-04 19:19
alvanshi
楼主把壁纸贴上来,

Re: 我也来秀一下我的桌面, 顺便奉上我的conky设置

发表于 : 2010-12-05 3:57
shadowmoon23
都别争了,都来打击吧。 @_@
时间不早了,该洗洗睡啦~
工作区 1_001.png