This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

firecat53

By: a guest on Oct 22nd, 2008  |  syntax: None  |  size: 5.74 KB  |  views: 158  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ##Main .conkyrc
  2.  
  3. background yes
  4. cpu_avg_samples 2
  5. net_avg_samples 2
  6. out_to_console no
  7. use_xft yes
  8. xftfont dejavusans:size=8
  9. xftalpha 1.0
  10. update_interval 2
  11. own_window yes
  12. own_window_type override
  13. own_window_transparent yes
  14. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  15. double_buffer yes
  16. minimum_size 5 5
  17. maximum_width 300
  18. draw_shades yes
  19. draw_outline no
  20. draw_borders no
  21. stippled_borders 0
  22. border_margin 10
  23. border_width 2
  24. default_color white
  25. default_shade_color black
  26. default_outline_color white
  27. alignment top_right
  28. gap_x 20
  29. gap_y 20
  30. use_spacer right
  31. no_buffers yes
  32. uppercase no
  33. if_up_strictness address
  34. short_units yes
  35. # colours for Google Calendar
  36. color1 white
  37. # light blue
  38. color2 6892C6
  39. # orange
  40. color3 E77320
  41. # green
  42. color4 78BF39
  43. # red
  44. color5 CC0000
  45. text_buffer_size 2048
  46. # stuff after 'TEXT' will be formatted on screen
  47. TEXT
  48. ${font DejaVu Sans:size=8}${color #ffccaa}SYSTEM ${color #888888}${alignr}Uptime ${color #CCCCCC}$uptime_short
  49.   ${color #888888}CPU 1 ${color #CCCCCC}${freq cpu1} MHz ${alignr}${cpubar cpu1 7,155 ff0000 ff00ff}
  50.   ${color #888888}CPU 2 ${color #CCCCCC}${freq cpu2} MHz ${alignr}${cpubar cpu2 7,155 ff0000 ff00ff}
  51.   ${color #888888}RAM  ${color #CCCCCC}$memmax  $memperc% ${alignr}${membar 7,155}
  52.   ${color #888888}Swap ${color #CCCCCC}$swapmax  $swapperc% ${alignr}${swapbar 7,155}
  53.  
  54. ${font DejaVu Sans:size=8}${color #ffccaa}FILESYSTEMS
  55.   ${color #888888}/ ${alignr}${color #CCCCCC}${fs_size /}    ${fs_used_perc /}% ${alignr}${fs_bar 6,100 /}
  56.   ${color #888888}/home ${alignr}${color #CCCCCC}${fs_size /home}    ${fs_used_perc /home}% ${alignr}${fs_bar 6,100 /home}
  57. ${if_mounted /boot}  ${color #888888}/boot ${alignr}${color #CCCCCC}${fs_size /boot}    ${fs_used_perc /boot}% ${alignr}${fs_bar 6,100 /boot} ${endif}
  58. ${if_mounted /mnt/mediacenter}  ${color #888888}/mnt/mediacenter ${alignr}${color #CCCCCC}${fs_size /mnt/mediacenter}    ${fs_used_perc /mnt/mediacenter}% ${alignr}${fs_bar 6,100 /mnt/mediacenter} ${endif}
  59. ${if_mounted /mnt/business}  ${color #888888}/mnt/business ${alignr}${color #CCCCCC}${fs_size /mnt/business}    ${fs_used_perc /mnt/business}% ${alignr}${fs_bar 6,100 /mnt/business} ${endif}
  60. ${font DejaVu Sans:size=8}${color #ffccaa}PROCESSES
  61.   ${color #888888}Name (by CPU usage) ${alignr}PID      CPU%    MEM%    
  62.   ${color #CCCCCC}${top name 1} ${alignr}${top pid 1}   ${top cpu 1}    ${top mem 1}  
  63.   ${color #CCCCCC}${top name 2} ${alignr}${top pid 2}   ${top cpu 2}    ${top mem 2}  
  64.   ${color #CCCCCC}${top name 3} ${alignr}${top pid 3}   ${top cpu 3}    ${top mem 3}  
  65.  
  66.   ${color #888888}Name (by Memory usage) ${alignr}PID   CPU%    MEM%    
  67.   ${color #CCCCCC}${top_mem name 1} ${alignr}${top_mem pid 1}   ${top_mem cpu 1}        ${top_mem mem 1}  
  68.   ${color #CCCCCC}${top_mem name 2} ${alignr}${top_mem pid 2}   ${top_mem cpu 2}        ${top_mem mem 2}  
  69.   ${color #CCCCCC}${top_mem name 3} ${alignr}${top_mem pid 3}   ${top_mem cpu 3}        ${top_mem mem 3}  
  70.  
  71. ${font DejaVu Sans:size=8}${color #ffccaa}NETWORK
  72. ${if_up wlan0}  ${color #888888}Up        ${color #CCCCCC}${upspeed wlan0}kb/s${alignr}${color #888888}Total    ${color #CCCCCC}${totalup wlan0}
  73.   ${color #888888}Down    ${color #CCCCCC}${downspeed wlan0}kb/s${alignr}${color #888888}Total  ${color #CCCCCC}${totaldown wlan0}${endif}
  74. ${if_up eth0}  ${color #888888}Up        ${color #CCCCCC}${upspeed eth0}kb/s${alignr}${color #888888}Total      ${color #CCCCCC}${totalup eth0}
  75.   ${color #888888}Down    ${color #CCCCCC}${downspeed eth0}kb/s${alignr}${color #888888}Total   ${color #CCCCCC}${totaldown eth0}${endif}
  76. ${font DejaVu Sans:size=8}${color #ffccaa}CAPTAIN'S TEST
  77.   ${color #CCCCCC}${execi 300 head -n 2 /home/firecat53/docs/fire/Studytime.txt}
  78.  
  79. ${font DejaVu Sans:size=8}${color #ffccaa}CALENDAR
  80.  
  81. ${execpi 300 cat /home/firecat53/.conky-cal}
  82. ${font DejaVu Sans Mono :size=8}${color #888888}${execi 300 /home/firecat53/scripts/conky-month-cal.sh}
  83.  
  84. #########################################
  85. ##Second .conkyrc for small area at bottom left
  86. background yes
  87. cpu_avg_samples 2
  88. out_to_console no
  89. use_xft yes
  90. xftfont DejaVuSans:size=6
  91. xftalpha 1.0
  92. update_interval 1
  93. own_window yes
  94. own_window_type override
  95. own_window_transparent yes
  96. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  97. double_buffer yes
  98. draw_outline no
  99. draw_borders no
  100. border_margin 0
  101. border_width 0
  102. draw_graph_borders no
  103. alignment bottom_left
  104. gap_x 1
  105. gap_y 0
  106. no_buffers yes
  107. uppercase no
  108. if_up_strictness address
  109. # stuff after 'TEXT' will be formatted on screen
  110. # the first line {voffset -40}${battery} used and then hidden again because battery_bar apparently needs battery displayed first or it throws an error msg
  111. mail_spool /home/firecat53/mail/inbox
  112. TEXT
  113. ${voffset -40}${battery}
  114. ${voffset 40}${cpubar cpu0 6,35} ${membar 6,35} ${battery_bar 6,35}   Mail  ${if_up wlan0} U ${upspeed wlan0} k${endif}    
  115.    CPU       RAM       BAT${if_up wlan0}        ${new_mails}     D ${downspeed wlan0} k${endif}
  116.  
  117. #########################################
  118. ##conky-calendar.sh (for google calendar entries)
  119. #!/bin/sh
  120. /usr/local/bin/conkyGoogleCalendar --username=emailaddress --password=password --nowho --daysahead=7 --indent=4 --limit=15 --dateformat="%a %m/%d" --timeformat="%H%M" --template=/home/firecat53/.conky-gcal-template > ~/.conky-cal-tmp
  121. ERROR=`grep 'No Events' ~/.conky-cal-tmp | tr -d [:space:]`
  122. ERROR2=`cat ~/.conky-cal-tmp`
  123. if [ "$ERROR" != "" -o  "$ERROR2" == "" ]
  124. then
  125.         exit 1
  126. else
  127.         cp ~/.conky-cal-tmp /home/firecat53/.conky-cal
  128. fi
  129.  
  130. #########################################
  131. ##.conky-gcal-template
  132.   ${voffset -10}${color1}<starttime> -- ${color4}<title>
  133.  
  134.  
  135.  
  136. ##conky-month-cal.sh (for small month calendar)
  137. #!/bin/sh
  138. cal | awk 'NR>1' | sed -e 's/   /    /g' -e 's/[^ ] /& /g' -e 's/..*/  & /' -e 's/ \('`date | awk '{print $3}'`'\) /\['`date | awk '{print $3}'`'\]/'
clone this paste RAW Paste Data