Advertisement
okubax

Untitled

May 1st, 2014
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 KB | None | 0 0
  1. # Conky settings #
  2. background yes
  3. update_interval 1
  4. double_buffer yes
  5. no_buffers yes
  6. imlib_cache_size 10
  7.  
  8. # Window specifications #
  9. gap_x 100
  10. gap_y 70
  11. minimum_size 268 620
  12. maximum_width 268
  13. own_window yes
  14. own_window_type normal # other options are: override/dock/desktop/panel
  15. own_window_transparent yes
  16. own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
  17. border_inner_margin 0
  18. border_outer_margin 0
  19. #alignment middle_middle
  20. alignment top_right
  21. #own_window_argb_visual yes
  22. #own_window_argb_value 0
  23.  
  24. # Graphics settings #
  25. draw_shades no
  26. default_shade_color AAAAAA
  27. draw_outline no
  28. default_outline_color AAAAAA
  29. draw_borders no
  30. draw_graph_borders no
  31. default_graph_size 26 80
  32. show_graph_scale no
  33. show_graph_range no
  34.  
  35. # Text settings #
  36. use_xft yes
  37. xftalpha 0
  38. xftfont Droid Sans:size=8
  39. text_buffer_size 256
  40. override_utf8_locale yes
  41.  
  42. # Useful shortenings #
  43. short_units yes
  44. pad_percents 2
  45. top_name_width 7
  46.  
  47. # Color scheme #
  48. default_color 333333
  49. color1 FFFFFF
  50. color2 777777
  51. color3 777777
  52. color4 AAAAAA
  53. color5 A0D468
  54. color6 AC92EC
  55. color7 FC6E51
  56. color8 4FC0E9
  57.  
  58. TEXT
  59. # Various images #
  60. ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=&u=c" -o ~/.cache/weather.xml}
  61. ${image ~/.conky-weather/assets/Flatts/God-Mode/top-bg.png -p 20,25 -s 228x66}\
  62. ${image ~/.conky-weather/assets/Flatts/God-Mode/shadow.png -p 20,591 -s 228x3}\
  63. ${image ~/.conky-weather/assets/Flatts/God-Mode/bottom-bg.png -p 20,473 -s 228x119}\
  64. ${image ~/.conky-weather/assets/Flatts/God-Mode/fav-color.png -p 20,91 -s 228x86}\
  65. ${image ~/.conky-weather/assets/Flatts/God-Mode/bg-1.png -p 20,177 -s 228x86}\
  66. ${image ~/.conky-weather/assets/Flatts/God-Mode/bg-2.png -p 20,263 -s 228x105}\
  67. ${image ~/.conky-weather/assets/Flatts/God-Mode/bg-3.png -p 20,368 -s 228x105}\
  68. ${image ~/.conky-weather/assets/Flatts/God-Mode/bg-4.png -p 20,478 -s 228x14}\
  69. ${image ~/.conky-weather/assets/Flatts/God-Mode/separator-v.png -p 95,185 -s 1x76}\
  70. ${image ~/.conky-weather/assets/Flatts/God-Mode/separator-v.png -p 172,185 -s 1x76}\
  71. ${image ~/.conky-weather/assets/Flatts/God-Mode/separator-h.png -p 33,369 -s 202x1}\
  72. ${image ~/.conky-weather/assets/Flatts/God-Mode/separator-h.png -p 33,269 -s 202x1}\
  73. \
  74. # The days of the forecast #
  75. \
  76. ${color3}${voffset 172}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${color}
  77. ${color3}${voffset -13}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${color}
  78. ${color3}${voffset -13}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${color}
  79. \
  80. # The temperatures of the forecast #
  81. \
  82. ${color2}${voffset 51}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${color}
  83. ${color2}${voffset -13}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${color}
  84. ${color2}${voffset -13}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${color}
  85. \
  86. # The "conditions" section of the conky #
  87. \
  88. ${goto 36}${voffset -172}${font Droid Sans :size=36}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${color}
  89. ${goto 46}${voffset 14}${font Droid Sans :size=12}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}${color}
  90. ${color1}${alignr 52}${voffset -73}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
  91. ${color1}${alignr 52}${voffset 7}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %${color}
  92. ${color1}${alignr 52}${voffset 7}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${color}
  93. \
  94. # Clock + calendar #
  95. \
  96. ${voffset -117}${font Droid Sans Mono :size=22}${alignc}${color2}${time %H:%M}${font}${color}
  97. ${voffset 4}${font Droid Sans :size=10}${alignc}${color4}${time %A, %B %d}${font}${color}
  98. \
  99. # Cpu, memory, uptime, and load graph #
  100. \
  101. ${voffset 294}${goto 40}${color8}Cpu:${color}
  102. ${voffset 4}${goto 40}${color5}Mem:${color}
  103. ${voffset 4}${goto 40}${color6}Uptime:${color}
  104. ${voffset -47}${alignr 39}${color2}${cpu cpu0}%${color}
  105. ${voffset 4}${alignr 39}${color2}${memperc}%${color}
  106. ${voffset 4}${alignr 39}${color2}${uptime_short}${color}
  107. ${voffset -47}${alignc}${color8}${cpubar 5,36}${color}
  108. ${voffset 4}${alignc}${color5}${membar 5,36}${color}
  109. ${voffset 29}${goto 40}${loadgraph 26,190 ac92ec ac92ec -l}
  110. \
  111. # The processes section #
  112. \
  113. ${voffset 26}${goto 40}${color2}${top_mem name 1}${color}
  114. ${voffset 4}${goto 40}${color2}${top_mem name 2}${color}
  115. ${voffset 4}${goto 40}${color2}${top_mem name 3}${color}
  116. ${voffset 4}${goto 40}${color2}${top_mem name 4}${color}
  117. ${voffset 4}${goto 40}${color2}${top_mem name 5}${color}
  118. ${voffset -81}${alignc}${color8}${top_mem mem 1}%${color}
  119. ${voffset 4}${alignc}${color8}${top_mem mem 2}%${color}
  120. ${voffset 4}${alignc}${color8}${top_mem mem 3}%${color}
  121. ${voffset 4}${alignc}${color8}${top_mem mem 4}%${color}
  122. ${voffset 4}${alignc}${color8}${top_mem mem 5}%${color}
  123. ${voffset -81}${alignr 39}${color6}${top_mem mem_res 1}${color}
  124. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 2}${color}
  125. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 3}${color}
  126. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 4}${color}
  127. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 5}${color}
  128. ${voffset -104}${goto 40}${color1}Proc${color}
  129. ${voffset -13}${alignc}${color1}Mem%${color}
  130. ${voffset -13}${alignr 39}${color1}Mem${color}
  131. \
  132. # The network section #
  133. \
  134. ${if_existing /proc/net/route ppp0}
  135. ${voffset -227}${goto 40}${color5}Up: ${color2}${upspeed ppp0}${color6}${goto 150}Down: ${color2}${downspeed ppp0}
  136. ${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph ppp0 26,80 4fc0e9 4fc0e9}
  137. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup ppp0}${color6}${goto 150}Received: ${color2}${totaldown ppp0}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  138. ${else}
  139. ${if_existing /proc/net/route ppp1}
  140. ${voffset -240}${goto 40}${color5}Up: ${color2}${upspeed ppp1}${color6}${goto 150}Down: ${color2}${downspeed ppp1}
  141. ${voffset 10}${goto 40}${upspeedgraph ppp1 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph ppp1 26,80 4fc0e9 4fc0e9}
  142. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup ppp1}${color6}${goto 150}Received: ${color2}${totaldown ppp1}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  143. ${else}
  144. ${if_existing /proc/net/route wlp2s1}
  145. ${voffset -253}${goto 40}${color5}Up: ${color2}${upspeed wlp2s1}${color6}${goto 150}Down: ${color2}${downspeed wlp2s1}
  146. ${voffset 10}${goto 40}${upspeedgraph wlp2s1 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph wlp2s1 26,80 4fc0e9 4fc0e9}
  147. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlp2s1}${color6}${goto 150}Received: ${color2}${totaldown wlp2s1}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  148. ${else}
  149. ${if_existing /proc/net/route wlp3s0}
  150. ${voffset -266}${goto 40}${color5}Up: ${color2}${upspeed wlp3s0}${color6}${goto 150}Down: ${color2}${downspeed wlp3s0}
  151. ${voffset 10}${goto 40}${upspeedgraph wlp3s0 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph wlp3s0 26,80 4fc0e9 4fc0e9}
  152. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlp3s0}${color6}${goto 150}Received: ${color2}${totaldown wlp3s0}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  153. ${else}
  154. ${if_existing /proc/net/route wlan0}
  155. ${voffset -279}${goto 40}${color5}Up: ${color2}${upspeed wlan0}${color6}${goto 150}Down: ${color2}${downspeed wlan0}
  156. ${voffset 8}${goto 40}${upspeedgraph wlan0 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph wlan0 26,80 4fc0e9 4fc0e9}
  157. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlan0}${color6}${goto 150}Received: ${color2}${totaldown wlan0}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  158. ${else}
  159. ${if_existing /proc/net/route wlan1}
  160. ${voffset -292}${goto 40}${color5}Up: ${color2}${upspeed wlan1}${color6}${goto 150}Down: ${color2}${downspeed wlan1}
  161. ${voffset 10}${goto 40}${upspeedgraph wlan1 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph wlan1 26,80 4fc0e9 4fc0e9}
  162. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlan1}${color6}${goto 150}Received: ${color2}${totaldown wlan1}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  163. ${else}
  164. ${if_existing /proc/net/route eth1}
  165. ${voffset -305}${goto 40}${color5}Up: ${color2}${upspeed eth1}${color6}${goto 150}Down: ${color2}${downspeed eth1}
  166. ${voffset 10}${goto 40}${upspeedgraph eth1 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph eth1 26,80 4fc0e9 4fc0e9}
  167. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup eth1}${color6}${goto 150}Received: ${color2}${totaldown eth1}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  168. ${else}
  169. ${if_existing /proc/net/route eth0}
  170. ${voffset -318}${goto 40}${color5}Up: ${color2}${upspeed eth0}${color6}${goto 150}Down: ${color2}${downspeed eth0}
  171. ${voffset 10}${goto 40}${upspeedgraph eth0 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph eth0 26,80 4fc0e9 4fc0e9}
  172. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup eth0}${color6}${goto 150}Received: ${color2}${totaldown eth0}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  173. ${else}
  174. ${if_existing /proc/net/route enp0s0}
  175. ${voffset -331}${goto 40}${color5}Up: ${color2}${upspeed enp0s0}${color6}${goto 150}Down: ${color2}${downspeed enp0s0}
  176. ${voffset 10}${goto 40}${upspeedgraph enp0s0 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph enp0s0 26,80 4fc0e9 4fc0e9}
  177. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup enp0s0}${color6}${goto 150}Received: ${color2}${totaldown enp0s0}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  178. ${else}
  179. ${if_existing /proc/net/route enp0s1}
  180. ${voffset -344}${goto 40}${color5}Up: ${color2}${upspeed enp0s1}${color6}${goto 150}Down: ${color2}${downspeed enp0s1}
  181. ${voffset 10}${goto 40}${upspeedgraph enp0s1 26,80 4fc0e9 4fc0e9}${goto 150}${downspeedgraph enp0s1 26,80 4fc0e9 4fc0e9}
  182. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup enp0s1}${color6}${goto 150}Received: ${color2}${totaldown enp0s1}${image ~/.conky-weather/assets/Flatts/God-Mode/online.png -p 20,25 -s 228x5}
  183. ${else}
  184. ${voffset -344}${goto 40}${color7}Network disconnected${color}
  185. ${image ~/.conky-weather/assets/Flatts/God-Mode/offline.png -p 20,25 -s 228x5}
  186. ${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
  187. \
  188. # Various images including the icons of the forecast #
  189. \
  190. ${image ~/.conky-weather/assets/Flatts/God-Mode/pressure.png -p 224,95 -s 16x16}\
  191. ${image ~/.conky-weather/assets/Flatts/God-Mode/humidity.png -p 224,115 -s 16x16}\
  192. ${image ~/.conky-weather/assets/Flatts/God-Mode/wind-2.png -p 224,136 -s 16x16}\
  193. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark2/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 41,207 -s 32x32}\
  194. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark2/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 119,207 -s 32x32}\
  195. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark2/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 195,207 -s 32x32}${font}${voffset -120}\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement