Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.66 KB | None | 0 0
  1. # Conky settings #
  2. background yes
  3. update_interval 1
  4. double_buffer yes
  5. no_buffers yes
  6. im_lib_cache_size 10
  7.  
  8. # Window specifications #
  9. gap_x -30
  10. gap_y -30
  11. minimum_size 268 768
  12. maximum_width 268
  13. maximum_length 768
  14. own_window yes
  15. own_window_transparent yes
  16. own_window_type desktop
  17. own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
  18. #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  19. border_inner_margin 0
  20. border_outer_margin 0
  21. #alignment middle_middle
  22. #own_window_argb_visual yes
  23. #own_window_argb_value 0
  24.  
  25. # Graphic settings #
  26. draw_shades no
  27. default_shade_color AAAAAA
  28. #default_shade_color 000000
  29. draw_outline no
  30. default_outline_color AAAAAA
  31. #default_outline_color 828282
  32. draw_borders no
  33. draw_graph_borders no
  34. default_graph_size 26 80
  35. show_graph_scale no
  36. show_graph_range no
  37.  
  38. # Text settings #
  39. use_xft yes
  40. xftalpha 0
  41. xftfont Courier 10 Pitch:size=8
  42. text_buffer_size 256
  43. override_utf8_locale yes
  44.  
  45. # Useful shortenings #
  46. short_units yes
  47. pad_percents 2
  48. top_name_width 7
  49.  
  50. total_run_times 0
  51. default_color 656667
  52. alignment top_right
  53. uppercase no
  54. cpu_avg_samples 2
  55.  
  56. TEXT
  57. # Various images #
  58. ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=1187094&u=c" -o ~/.cache/weather.xml}
  59. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-v.png -p 95,190 -s 1x76}\
  60. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-v.png -p 172,190 -s 1x76}\
  61. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-h.png -p 33,85 -s 202x1}\
  62. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-h.png -p 33,175 -s 202x1}\
  63. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-h.png -p 33,280 -s 202x1}\
  64. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-h.png -p 33,389 -s 202x1}\
  65. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-h.png -p 33,520 -s 202x1}\
  66. ${image ~/.conky-weather/assets/Transparent/God-Mode/separator-h.png -p 33,620 -s 202x1}\
  67. \
  68. # Clock + calendar #
  69. \
  70. ${voffset 50}${font Courier 10 Pitch :size=15}${alignc}${color2}${time %H:%M}${font}${color}
  71. \
  72. # The days of the forecast #
  73. \
  74. ${color3}${voffset 97}${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}
  75. ${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}
  76. ${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}
  77. \
  78. # The temperatures of the forecast #
  79. \
  80. ${color2}${voffset 60}${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}
  81. ${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}
  82. ${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}
  83. \
  84. # The "conditions" section of the conky #
  85. \
  86. ${goto 36}${voffset -192}${font Droid Sans :size=36}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${color}
  87. ${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}
  88. ${color1}${alignr 62}${voffset -65}${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 "[^\"]*"}
  89. ${color1}${alignr 62}${voffset 7}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %${color}
  90. ${color1}${alignr 62}${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}
  91. \
  92. # Various images including the icons of the forecast #
  93. \
  94. ${image ~/.conky-weather/assets/Transparent/God-Mode/pressure.png -p 210,101 -s 16x16}\
  95. ${image ~/.conky-weather/assets/Transparent/God-Mode/humidity.png -p 210,121 -s 16x16}\
  96. ${image ~/.conky-weather/assets/Transparent/God-Mode/wind-2.png -p 210,141 -s 16x16}\
  97. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light3/$(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,210 -s 32x32}\
  98. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light3/$(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,210 -s 32x32}\
  99. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light3/$(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,210 -s 32x32}${font}${voffset -120}\
  100. \
  101. # The processes section #
  102. \
  103. ${voffset 395}${goto 40}${color2}${top_mem name 1}${color}
  104. ${voffset d}${goto 40}${color2}${top_mem name 2}${color}
  105. ${voffset 4}${goto 40}${color2}${top_mem name 3}${color}
  106. ${voffset 4}${goto 40}${color2}${top_mem name 4}${color}
  107. ${voffset 4}${goto 40}${color2}${top_mem name 5}${color}
  108. ${voffset -81}${alignc}${color5}${top_mem mem 1}%${color}
  109. ${voffset 3}${alignc}${color5}${top_mem mem 2}%${color}
  110. ${voffset 3}${alignc}${color5}${top_mem mem 3}%${color}
  111. ${voffset 3}${alignc}${color5}${top_mem mem 4}%${color}
  112. ${voffset 3}${alignc}${color5}${top_mem mem 5}%${color}
  113. ${voffset -81}${alignr 39}${color6}${top_mem mem_res 1}${color}
  114. ${voffset 3}${alignr 39}${color6}${top_mem mem_res 2}${color}
  115. ${voffset 3}${alignr 39}${color6}${top_mem mem_res 3}${color}
  116. ${voffset 3}${alignr 39}${color6}${top_mem mem_res 4}${color}
  117. ${voffset 3}${alignr 39}${color6}${top_mem mem_res 5}${color}
  118. ${voffset -114}${goto 40}${color1}Proc${color}
  119. ${voffset -13}${alignc}${color1}Mem%${color}
  120. ${voffset -13}${alignr 39}${color1}Mem${color}
  121. \
  122. # Cpu, memory, uptime, and load graph #
  123. \
  124. ${voffset -125}${goto 40}${color2}Host:${color}
  125. ${voffset 4}${goto 40}${color2}RAM:${color}
  126. ${voffset 4}${goto 40}${color2}Disk:${color}
  127. ${voffset 4}${goto 40}${color2}CPU:${color}
  128. ${voffset 4}${goto 40}${color2}Uptime:${color}
  129. ${voffset -87}${alignr 39}$color2}$nodename${color}
  130. ${voffset 7}${alignr 39}${color2}$mem/$memmax${color}
  131. ${voffset 4}${alignr 39}${color2}${fs_used /}/${fs_size /}${color}
  132. ${voffset 4}${alignr 39}${color2}${cpu cpu0}%${color}
  133. ${voffset 4}${alignr 39}${color2}${uptime_short}${color}
  134. ${voffset -70}${alignc 20}${color2}${membar 5,85}${color}
  135. ${voffset 4}${alignc 20}${color2}${fs_bar 5,85}${color}
  136. ${voffset 4}${alignc 20}${color2}${cpubar 5,85}${color}
  137. \
  138. # The network section #
  139. \
  140. ${if_existing /proc/net/route ppp0}
  141. ${voffset -127}${goto 40}${color5}Up: ${color2}${upspeed ppp0}${color5}${goto 150}Down: ${color2}${downspeed ppp0}
  142. ${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph ppp0 26,80 FFFFFF FFFFFF}
  143. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup ppp0}${color5}${goto 150}Received: ${color2}${totaldown ppp0}
  144. ${else}
  145. ${if_existing /proc/net/route ppp1}
  146. ${voffset -240}${goto 40}${color5}Up: ${color2}${upspeed ppp1}${color5}${goto 150}Down: ${color2}${downspeed ppp1}
  147. ${voffset 10}${goto 40}${upspeedgraph ppp1 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph ppp1 26,80 FFFFFF FFFFFF}
  148. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup ppp1}${color5}${goto 150}Received: ${color2}${totaldown ppp1}
  149. ${else}
  150. ${if_existing /proc/net/route wlp2s1}
  151. ${voffset -253}${goto 40}${color5}Up: ${color2}${upspeed wlp2s1}${color5}${goto 150}Down: ${color2}${downspeed wlp2s1}
  152. ${voffset 10}${goto 40}${upspeedgraph wlp2s1 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph wlp2s1 26,80 FFFFFF FFFFFF}
  153. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlp2s1}${color5}${goto 150}Received: ${color2}${totaldown wlp2s1}
  154. ${else}
  155. ${if_existing /proc/net/route wlp2s0}
  156. ${voffset -266}${goto 40}${color5}Up: ${color2}${upspeed wlp2s0}${color5}${goto 150}Down: ${color2}${downspeed wlp2s0}
  157. ${voffset 10}${goto 40}${upspeedgraph wlp2s0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph wlp2s0 26,80 FFFFFF FFFFFF}
  158. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlp2s0}${color5}${goto 150}Received: ${color2}${totaldown wlp2s0}
  159. ${else}
  160. ${if_existing /proc/net/route wlan0}
  161. ${voffset 103}${goto 40}${color5}Up: ${color2}${upspeed wlan0}${color5}${goto 150}Down: ${color2}${downspeed wlan0}
  162. ${voffset 8}${goto 40}${upspeedgraph wlan0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph wlan0 26,80 FFFFFF FFFFFF}
  163. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlan0}${color5}${goto 150}Received: ${color2}${totaldown wlan0}
  164. ${else}
  165. ${if_existing /proc/net/route wlan1}
  166. ${voffset -292}${goto 40}${color5}Up: ${color2}${upspeed wlan1}${color5}${goto 150}Down: ${color2}${downspeed wlan1}
  167. ${voffset 10}${goto 40}${upspeedgraph wlan1 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph wlan1 26,80 FFFFFF FFFFFF}
  168. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlan1}${color5}${goto 150}Received: ${color2}${totaldown wlan1}
  169. ${else}
  170. ${if_existing /proc/net/route eth1}
  171. ${voffset -305}${goto 40}${color5}Up: ${color2}${upspeed eth1}${color5}${goto 150}Down: ${color2}${downspeed eth1}
  172. ${voffset 10}${goto 40}${upspeedgraph eth1 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph eth1 26,80 FFFFFF FFFFFF}
  173. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup eth1}${color5}${goto 150}Received: ${color2}${totaldown eth1}
  174. ${else}
  175. ${if_existing /proc/net/route eth0}
  176. ${voffset -418}${goto 40}${color5}Up: ${color2}${upspeed eth0}${color5}${goto 150}Down: ${color2}${downspeed eth0}
  177. ${voffset 10}${goto 40}${upspeedgraph eth0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph eth0 26,80 FFFFFF FFFFFF}
  178. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup eth0}${color5}${goto 150}Received: ${color2}${totaldown eth0}
  179. ${else}
  180. ${if_existing /proc/net/route enp0s0}
  181. ${voffset -331}${goto 40}${color5}Up: ${color2}${upspeed enp0s0}${color5}${goto 150}Down: ${color2}${downspeed enp0s0}
  182. ${voffset 10}${goto 40}${upspeedgraph enp0s0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph enp0s0 26,80 FFFFFF FFFFFF}
  183. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup enp0s0}${color5}${goto 150}Received: ${color2}${totaldown enp0s0}
  184. ${else}
  185. ${if_existing /proc/net/route enp0s1}
  186. ${voffset -344}${goto 40}${color5}Up: ${color2}${upspeed enp0s1}${color5}${goto 150}Down: ${color2}${downspeed enp0s1}
  187. ${voffset 10}${goto 40}${upspeedgraph enp0s1 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph enp0s1 26,80 FFFFFF FFFFFF}
  188. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup enp0s1}${color5}${goto 150}Received: ${color2}${totaldown enp0s1}
  189. ${else}
  190. ${voffset 0}${goto 40}${color5}Network disconnected${color}
  191. ${image ~/.conky-weather/assets/Transparent/God-Mode/offline.png -p 44,284 -s 16x16}
  192. ${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
  193. \
  194. ${font Courier 10 Pitch:bold:size=8}${color}I T ${color1}L ${color}I S ${color1}A S T I M E
  195. ${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color}${endif}${endif}A ${color1}C ${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color}${endif}${endif}Q U A R T E R ${color1}D C
  196. ${if_match ${exec date +"%M"} >= 20}${if_match ${exec date +"%M"} < 30}${color}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} >= 25}${if_match ${exec date +"%M"} < 30}${color}${endif}${else}${color1}${endif}${if_match ${exec date +"%M"} >= 5}${if_match ${exec date +"%M"} < 10}${color}${endif}${endif}F I V E ${color1}X
  197. ${if_match ${exec date +"%M"} >= 30}${if_match ${exec date +"%M"} < 35}${color}${endif}${endif}H A L F ${color1}B ${if_match ${exec date +"%M"} >= 10}${if_match ${exec date +"%M"} < 15}${color}${endif}${endif}T E N ${color1}F T O
  198. ${else}${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color}${endif}${endif}A ${color1}C ${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color}${endif}${endif}Q U A R T E R ${color1}D C
  199. ${if_match ${exec date +"%M"} >= 35}${if_match ${exec date +"%M"} < 45}${color}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} < 40}${if_match ${exec date +"%M"} >= 35}${color}${endif}${else}${color1}${endif}${if_match ${exec date +"%M"} >= 55}${color}${endif}F I V E ${color1}X
  200. H A L F B ${if_match ${exec date +"%M"} >= 50}${if_match ${exec date +"%M"} < 55}${color}${endif}${endif}T E N ${color1}F ${color}T O${color1}
  201. ${endif}${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} > 5}${color}${endif}${endif}P A S T ${color1}E R U ${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%I"} == 9}${color}${else}${color1}${endif}N I N E
  202. ${if_match ${exec date +"%I"} == 1}${color}${else}${color1}${endif}O N E ${if_match ${exec date +"%I"} == 6}${color}${else}${color1}${endif}S I X $${if_match ${exec date +"%I"} == 3}${color}${else}${color1}${endif}T H R E E
  203. ${if_match ${exec date +"%I"} == 4}${color}${else}${color1}${endif}F O U R ${if_match ${exec date +"%I"} == 5}${color}${else}${color1}${endif}F I V E ${if_match ${exec date +"%I"} == 2}${color}${else}${color1}${endif}T W O
  204. ${if_match ${exec date +"%I"} == 8}${color}${else}${color1}${endif}E I G H T ${if_match ${exec date +"%I"} == 11}${color}${else}${color1}${endif}E L E V E N
  205. ${if_match ${exec date +"%I"} == 7}${color}${else}${color1}${endif}S E V E N ${if_match ${exec date +"%I"} == 12}${color}${else}${color1}${endif}T W E L V E
  206. ${if_match ${exec date +"%I"} == 10}${color}${else}${color1}${endif}T E N ${else}${if_match ${exec date +"%I"} == 8}${color}${else}${color1}${endif}N I N E
  207. ${if_match ${exec date +"%I"} == 12}${color}${else}${color1}${endif}O N E ${if_match ${exec date +"%I"} == 5}${color}${else}${color1}${endif}S I X ${if_match ${exec date +"%I"} == 2}${color}${else}${color1}${endif}T H R E E
  208. ${if_match ${exec date +"%I"} == 3}${color}${else}${color1}${endif}F O U R ${if_match ${exec date +"%I"} == 4}${color}${else}${color1}${endif}F I V E ${if_match ${exec date +"%I"} == 1}${color}${else}${color1}${endif}T W O
  209. ${if_match ${exec date +"%I"} == 7}${color}${else}${color1}${endif}E I G H T${if_match ${exec date +"%I"} == 10}${color}${else}${color1}${endif} E L E V E N
  210. ${if_match ${exec date +"%I"} == 6}${color}${else}${color1}${endif}S E V E N${if_match ${exec date +"%I"} == 11}${color}${else}${color1}${endif} T W E L V E
  211. ${if_match ${exec date +"%I"} == 9}${color}${else}${color1}${endif}T E N ${endif}${color1}S E ${if_match ${exec date +"%M"} < 5}${color}${endif}O C L O C K
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement