windwos与ubuntu共用一个工作空间
conky配置一枚

小备份conky配置文件

Thomas posted @ Nov 07, 2009 03:51:32 PM in Linux with tags ubuntu conky 备份,config , 6298 阅读

        今天闲的无聊有吧conky给倒腾出来了,找了一个基本差不多的配置,然后开始无尽的任务(不对是无尽的调整)算是调整的七七八八了吧,至少我看着舒服了。这个说是在的没有多华丽,但是很多Linuxer都会使用,真不知道为啥,GNOME Do里有很多华丽的东东,不知到用的人有多少,反正我是不用的,打从windows时代就有抗拒心理,也可以说是阴影吧,总之不爽。

文章来源:微笑

        先上个图,留个念想。

        然后当然是贴代码备份之用,当然如果你看到了喜欢也可以使用。顺便说下这里有另外两个文件,一个是天气预报,一个是Gmail新邮件提示,我没启用,想用的话取消注释即可。

  1. #${color #75507B}天气状况${color}${color #8AE234}${hr 1}${color}
  2. #${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CN}
  3. #${font Weather:size=25}${color gold}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CC}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WS} ${font Arrows:size=11}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=BF}$font
  4. #${offset 60}Sol: ${color}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SR}-${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SS}
  5. #${font Weather:size=20}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
  6. #${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT --startday=1 --endday=4 --spaces=11}
  7. #${color #75507B}E-MAIL${color}${color #8AE234}${hr 1}${color}
  8. #You have ${color red}${texeci 1800 perl ~/conkyrc/check_gmail.sh} ${color}new mail(s)

          Gmail提示把两处xxxx修改为自己的用户名和密码,不用加@gmail.com(sh文件):

  1. #!/bin/bash
  2.  
  3. gmail_login="xxxx"
  4. gmail_password="xxxx"
  5.  
  6. dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
  7. https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
  8. --no-check-certificate | grep 'fullcount' \
  9. | sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
  10.  
  11. if [ -z "$dane" ]; then
  12. echo "Error"
  13. else
  14. echo "$dane"
  15. fi

         天气预报(python脚本)点击这里下载。(提取码:8606213248276382

        另外提醒下载的同志们,这个网盘的广告很多,下载地址在最下面,看清楚了再点,如果有好个网盘也希望能告诉我,忍受不了这个了。

        以下是.conkyrc的全部内容:

 

  1. background yes
  2. cpu_avg_samples 2
  3. net_avg_samples 2
  4. out_to_console no
  5. use_xft yes
  6. xftfont Microsoft_YaHei:size=10
  7. own_window_transparent no
  8. xftalpha 0.8
  9. mail_spool $MAIL
  10. update_interval 1
  11. own_window yes
  12. own_window_transparent yes
  13. own_window_hints undecorated,below,skip_taskbar
  14. own_window_type override
  15. double_buffer yes
  16. minimum_size 260 5
  17. maximum_width 280
  18. draw_shades yes
  19. draw_outline no
  20. draw_borders no
  21. stippled_borders yes
  22. border_margin 4
  23. border_width 1
  24. default_color #FFFFFF
  25. default_shade_color #E8E9ED
  26. default_outline_color green
  27. gap_x 10
  28. gap_y 130
  29. alignment top_right
  30. use_spacer none
  31. no_buffers yes
  32. uppercase no
  33. TEXT
  34. ${color #75507B}${font Micorsoft_Yahei:size=12}时间记忆${font}${color}${color #8AE234}${hr 1}${color}
  35. ${font Terminus:size=22}${color #75507B}${time %l:%M:%S}${font}${alignr}记忆,憔悴de${color}
  36. ${color #75507B}${alignc}${font Terminus:size=11}${time %b %d %a}${color}${font}
  37. ${color #75507B}系统信息:${color}${color #8AE234}${hr 1}${color}
  38. ${color #75507B}宿主信息:${color}${alignr}${color #8AE234}$nodename${color}
  39. ${color #75507B}内核信息:${color}${alignr}${color #8AE234}$kernel${color}
  40. ${color #75507B}开机时长:${color}${alignr}${color #8AE234}$uptime${color}
  41. #${color #75507B}CPU温度:${color}${alignr}${color #8AE234}${acpitemp}°C${color}
  42. ${font Terminus:size=11}${color #75507B}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${font Terminus:size=11}${color}
  43. ${color #8AE234}${hr 1}${color}
  44. ${color #75507B}CPU1 ${cpu cpu1}%${alignr}CPU2 ${cpu cpu2}%${color}
  45. ${voffset -6}${cpugraph cpu1 15,115 000000 ff4500 }  $alignr${offset -2}${cpugraph cpu2 15,115 000000 436eee}
  46. ${color #75507B}Ram ${color}${alignr}${color #8AE234}$mem / $memmax ($memperc%)${color}
  47. ${color #8AE234}${membar 4}${color}
  48. ${color #75507B}swap ${color}${alignr}${color #8AE234}$swap / $swapmax ($swapperc%)${color}
  49. ${color #8AE234}${swapbar 4}${color}
  50. ${color #75507B}Highest CPU ${color}${alignc}${color #8AE234}    CPU%${alignr}PID${color}
  51. ${color #75507B}${top name 1}${color}${alignc}${color #8AE234}${top cpu 1}${color}${color #8AE234}${alignr}${top pid 1}${color}
  52. ${color #75507B}${top name 2}${color}${alignc}${color #8AE234}${top cpu 2}${color}${color #8AE234}${alignr}${top pid 2}${color}
  53. ${color #75507B}${top name 3}${color}${alignc}${color #8AE234}${top cpu 3}${color}${color #8AE234}${alignr}${top pid 3}${color}
  54. ${color #75507B}Highest MEM ${color}${alignc}${color #8AE234}    MEM%${alignr}PID${color}
  55. ${color #75507B}${top_mem name 1}${color}${alignc}${color #8AE234}${top_mem mem 1}${alignr}${top_mem pid 1}${color}
  56. ${color #75507B}${top_mem name 2}${color}${alignc}${color #8AE234}${top_mem mem 2}${alignr}${top_mem pid 2}${color}
  57. ${color #75507B}${top_mem name 3}${color}${alignc}${color #8AE234}${top_mem mem 3}${alignr}${top_mem pid 3}${color}
  58. ${color #75507B}${font}文件系统${color #8AE234}${hr 1}${color}
  59. ${color #75507B}Root:${color} ${alignr}${color #8AE234}${fs_free /} ${color} @ ${color #8AE234}${fs_size /}${color}
  60. ${color #8AE234}${fs_bar 4 /}${color}
  61. ${color #75507B}Home:${color} ${alignr}${color #8AE234}${fs_free /home} ${color} @ ${color #8AE234}${fs_size /home}${color}
  62. ${color #8AE234}${fs_bar 4 /home}${color}
  63. ${color #75507B}${font}网络流量${color #8AE234}${hr 1}${color}
  64. ${color #8AE234}Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s${color}
  65. ${color #8AE234}${downspeedgraph eth0 15,115} ${alignr}${upspeedgraph eth0 15,115}${color}
  66. ${color #8AE234}Total ${totaldown eth0} ${alignr}Total ${totalup eth0}${color}
  67. #${color #75507B}天气状况${color}${color #8AE234}${hr 1}${color}
  68. #${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CN}
  69. #${font Weather:size=25}${color gold}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CC}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WS} ${font Arrows:size=11}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=BF}$font
  70. #${offset 60}Sol: ${color}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SR}-${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SS}
  71. #${font Weather:size=20}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
  72. #${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT --startday=1 --endday=4 --spaces=11}
  73. #${color #75507B}E-MAIL${color}${color #8AE234}${hr 1}${color}
  74. #You have ${color red}${texeci 1800 perl ~/conkyrc/check_gmail.sh} ${color}new mail(s)
  75. #${color #75507B}RSS${color}${color #8AE234}${hr 1}${color}
  76. #${rss  http://www.j2megame.org/index.php/component/option-com_rss/feed-RSS2.0/no_html-1.html 5 item_titles 3}

PS.我个人比较喜欢简单(减少配置麻烦=。=),当然如果你喜欢更多的内容可以到ubunut官方论坛去找找有很多很不错的配置。

 

 

本文为原创转载请注明微笑 Creative Commons License
转载时请遵循 “署名-非商业用途-保持一致” 的创作共用协议

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter