Guest
Public paste!

root

By: a guest | May 4th, 2009 | Syntax: None | Size: 3.66 KB | Hits: 77 | Expires: Never
Copy text to clipboard
  1. # UBUNTU-CONKY
  2. # A comprehensive conky script, configured for use on
  3. # Ubuntu / Debian Gnome, without the need for any external scripts.
  4. #
  5. # Based on conky-jc and the default .conkyrc.
  6. # INCLUDES:
  7. # - tail of /var/log/messages
  8. # - netstat shows number of connections from your computer and application/PID making it. Kill spyware!
  9. #
  10. # -- Pengo
  11. #
  12.  
  13. # Create own window instead of using desktop (required in nautilus)
  14. own_window yes
  15.  
  16. # Use double buffering (reduces flicker, may not work for everyone)
  17. double_buffer yes
  18.  
  19. # fiddle with window
  20. use_spacer right
  21.  
  22. # Use Xft?
  23. use_xft yes
  24. xftfont DejaVu Sans:size=8
  25. xftalpha 0.8
  26. text_buffer_size 2048
  27.  
  28. # Update interval in seconds
  29. update_interval 3.0
  30.  
  31. # Minimum size of text area
  32. # minimum_size 250 5
  33.  
  34. # Draw shades?
  35. draw_shades no
  36.  
  37. # Text stuff
  38. draw_outline no # amplifies text if yes
  39. draw_borders no
  40. uppercase no # set to yes if you want all text to be in uppercase
  41.  
  42. # Stippled borders?
  43. stippled_borders 3
  44.  
  45. # border margins
  46. border_margin 9
  47.  
  48. # border width
  49. border_width 10
  50.  
  51. # Default colors and also border colors, grey90 == #e5e5e5
  52. default_color black
  53.  
  54. own_window_colour purple
  55.  
  56. # Text alignment, other possible values are commented
  57. #alignment top_left
  58. #alignment top_right
  59. #alignment bottom_left
  60. #alignment bottom_right
  61.  
  62. # Gap between borders of screen and text
  63. gap_x 10
  64. gap_y 10
  65.  
  66. TEXT
  67. ${color orange}TIME ${hr 2}
  68. ${time %H:%M }${time %a,} ${time %B %e %G}
  69. ${color orange}SYSTEM ${hr 2}$color
  70. $nodename $sysname $kernel on $machine
  71. Uptime $alignr${uptime}
  72. File System $alignr${fs_type}
  73. ${color orange}CPU ${hr 2}$color
  74. ${freq}MHz   Load: ${loadavg}   Temp: ${acpitemp}
  75. $cpubar
  76. ${cpugraph 000000 ffffff}
  77. NAME             PID       CPU%      MEM%
  78. ${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
  79. ${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
  80. ${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
  81. ${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
  82. ${color orange}MEMORY / DISK ${hr 2}$color
  83. RAM:   $memperc%   ${membar 6}$color
  84. Swap:  $swapperc%   ${swapbar 6}$color
  85. Root:  ${fs_free_perc /}%   ${fs_bar 6 /}$color
  86. ${color orange}NETWORK (${addr eth0}) ${hr 2}$color
  87. ${color orange}IP:${execi 3600 wget -O - http://whatismyip.com/automation/n09230945.asp | tail}${hr 2}
  88. Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
  89. ${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
  90. 25,140 000000 00ff00}$color
  91. Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
  92. ${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}
  93. ${color orange}LOGGING ${hr 2}$color
  94. ${execi 30 tail -n3 /var/log/messages | awk '{print " ",$5,$6,$7,$8,$9,$10}' | fold -w50}
  95. ${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font}  ${hr}${color1}
  96. ${color3}Template Output:${color1}
  97. ${execpi 1800 conkyForecast --location=TUXX0014 --template=/usr/share/conkyforecast/example/conkyForecast.template}
  98. ${font Bitstream Vera Sans Mono:size=14}${execi 1800 conkyForecast --location=TUXX0014 --datatype=CT}${font}
  99. ${font ConkyWeather:style=Bold:size=40}${execi 1800 conkyForecast --location=TUXX0014 --datatype=WF}   ${font ConkyWindNESW:size=40}${execi 1800 conkyForecast --location=TUXX0014 --datatype=BS}${font}
  100. ${execi 1800 conkyForecast --location=TUXX0014 --datatype=HT --centeredwidth=4}/${execi 1800 conkyForecast --location=TUXX0014 --datatype=LT --centeredwidth=4}  ${execi 1800 conkyForecast --location=TUXX0014 --datatype=WS --imperial} - ${execi 1800 conkyForecast --location=TUXX0014 --datatype=WD}
  101. ${color orange}You have ${color orange}${texeci 60 perl ~/scripts/gmail.pl n} ${color orange}new gmail(s).${hr 2}