Guest User

Untitled

a guest
Feb 25th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.26 KB | None | 0 0
  1. TEXT
  2. # Various images #
  3. ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=963291&u=c" -o ~/.cache/weather.xml}
  4. ${image ~/.conky-weather/assets/Nord/God-Mode/top-bg-2.png -p 12,22 -s 244x69}\
  5. ${image ~/.conky-weather/assets/Nord/God-Mode/bottom-bg-2.png -p 12,493 -s 244x105}\
  6. ${execi 300 cp -f ~/.conky-weather/icons/weather-photos-7/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 20,91 -s 228x86}\
  7. ${image ~/.conky-weather/assets/Nord/God-Mode/border.png -p 12,91 -s 244x86}\
  8. ${image ~/.conky-weather/assets/Nord/God-Mode/bg-1a.png -p 12,177 -s 244x86}\
  9. ${image ~/.conky-weather/assets/Nord/God-Mode/bg-2a.png -p 12,263 -s 244x105}\
  10. ${image ~/.conky-weather/assets/Nord/God-Mode/bg-3a.png -p 12,368 -s 244x109}\
  11. ${image ~/.conky-weather/assets/Nord/God-Mode/bg-4a.png -p 12,477 -s 244x16}\
  12. ${image ~/.conky-weather/assets/Nord/God-Mode/separator-v.png -p 95,185 -s 1x76}\
  13. ${image ~/.conky-weather/assets/Nord/God-Mode/separator-v.png -p 172,185 -s 1x76}\
  14. ${image ~/.conky-weather/assets/Nord/God-Mode/separator-h.png -p 33,369 -s 202x1}\
  15. ${image ~/.conky-weather/assets/Nord/God-Mode/separator-h.png -p 33,269 -s 202x1}\
  16. \
  17. # The days of the forecast #
  18. \
  19. ${color1}${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}
  20. ${color1}${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}
  21. ${color1}${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}
  22. \
  23. # The temperatures of the forecast #
  24. \
  25. ${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}
  26. ${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}
  27. ${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}
  28. \
  29. # The "conditions" section of the conky #
  30. \
  31. ${goto 36}${voffset -172}${font Droid Sans :size=36}${color3}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${color}
  32. ${goto 46}${voffset 14}${font Droid Sans :size=12}${color3}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}${color}
  33. ${color3}${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 "[^\"]*"}
  34. ${color3}${alignr 52}${voffset 7}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %${color}
  35. ${color3}${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}
  36. \
  37. # Clock + calendar #
  38. \
  39. ${voffset -117}${font Droid Sans Mono :size=22}${alignc}${color2}${time %H:%M}${font}${color}
  40. ${voffset 4}${font Droid Sans :size=10}${alignc}${color6}${time %A, %B %d}${font}${color}
  41. \
  42. # Cpu, memory, swap info and load graph #
  43. \
  44. ${voffset 294}${goto 40}${color5}Cpu:${color}
  45. ${voffset 4}${goto 40}${color5}Mem:${color}
  46. ${voffset 4}${goto 40}${color5}Swap:${color}
  47. ${voffset -47}${alignr 39}${color6}${cpu cpu0}%${color}
  48. ${voffset 4}${alignr 39}${color6}${memperc}%${color}
  49. ${voffset 4}${alignr 39}${color6}${swapperc}%${color}
  50. ${voffset -47}${alignc}${color2}${cpubar 5,36}${color}
  51. ${voffset 4}${alignc}${color2}${membar 5,36}${color}
  52. ${voffset 4}${alignc}${color2}${swapbar 5,36}${color}
  53. ${voffset 12}${goto 40}${loadgraph 26,190 6DB9D5 6DB9D5 -l}
  54. \
  55. # The processes section #
  56. \
  57. ${voffset 26}${goto 40}${color5}${top_mem name 1}${color}
  58. ${voffset 4}${goto 40}${color5}${top_mem name 2}${color}
  59. ${voffset 4}${goto 40}${color5}${top_mem name 3}${color}
  60. ${voffset 4}${goto 40}${color5}${top_mem name 4}${color}
  61. ${voffset 4}${goto 40}${color5}${top_mem name 5}${color}
  62. ${voffset -81}${alignc}${color2}${top_mem mem 1}%${color}
  63. ${voffset 4}${alignc}${color2}${top_mem mem 2}%${color}
  64. ${voffset 4}${alignc}${color2}${top_mem mem 3}%${color}
  65. ${voffset 4}${alignc}${color2}${top_mem mem 4}%${color}
  66. ${voffset 4}${alignc}${color2}${top_mem mem 5}%${color}
  67. ${voffset -81}${alignr 39}${color6}${top_mem mem_res 1}${color}
  68. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 2}${color}
  69. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 3}${color}
  70. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 4}${color}
  71. ${voffset 4}${alignr 39}${color6}${top_mem mem_res 5}${color}
  72. ${voffset -104}${goto 40}${color3}Proc${color}
  73. ${voffset -13}${alignc}${color3}Mem%${color}
  74. ${voffset -13}${alignr 39}${color3}Mem${color}
  75. \
  76. # The network section #
  77. \
  78. ${if_existing /proc/net/route ppp0}
  79. ${voffset -227}${goto 40}${color5}Up: ${color2}${upspeed ppp0}${color5}${goto 150}Down: ${color2}${downspeed ppp0}
  80. ${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph ppp0 26,80 6DB9D5 6DB9D5}
  81. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup ppp0}${color5}${goto 150}Received: ${color2}${totaldown ppp0}
  82. ${else}
  83. ${if_existing /proc/net/route ppp1}
  84. ${voffset -240}${goto 40}${color5}Up: ${color2}${upspeed ppp1}${color5}${goto 150}Down: ${color2}${downspeed ppp1}
  85. ${voffset 10}${goto 40}${upspeedgraph ppp1 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph ppp1 26,80 6DB9D5 6DB9D5}
  86. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup ppp1}${color5}${goto 150}Received: ${color2}${totaldown ppp1}
  87. ${else}
  88. ${if_existing /proc/net/route wlp2s1}
  89. ${voffset -253}${goto 40}${color5}Up: ${color2}${upspeed wlp2s1}${color5}${goto 150}Down: ${color2}${downspeed wlp2s1}
  90. ${voffset 10}${goto 40}${upspeedgraph wlp2s1 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph wlp2s1 26,80 6DB9D5 6DB9D5}
  91. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlp2s1}${color5}${goto 150}Received: ${color2}${totaldown wlp2s1}
  92. ${else}
  93. ${if_existing /proc/net/route wlp2s0}
  94. ${voffset -266}${goto 40}${color5}Up: ${color2}${upspeed wlp2s0}${color5}${goto 150}Down: ${color2}${downspeed wlp2s0}
  95. ${voffset 10}${goto 40}${upspeedgraph wlp2s0 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph wlp2s0 26,80 6DB9D5 6DB9D5}
  96. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlp2s0}${color5}${goto 150}Received: ${color2}${totaldown wlp2s0}
  97. ${else}
  98. ${if_existing /proc/net/route wlan0}
  99. ${voffset -279}${goto 40}${color5}Up: ${color2}${upspeed wlan0}${color5}${goto 150}Down: ${color2}${downspeed wlan0}
  100. ${voffset 8}${goto 40}${upspeedgraph wlan0 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph wlan0 26,80 6DB9D5 6DB9D5}
  101. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlan0}${color5}${goto 150}Received: ${color2}${totaldown wlan0}
  102. ${else}
  103. ${if_existing /proc/net/route wlan1}
  104. ${voffset -292}${goto 40}${color5}Up: ${color2}${upspeed wlan1}${color5}${goto 150}Down: ${color2}${downspeed wlan1}
  105. ${voffset 10}${goto 40}${upspeedgraph wlan1 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph wlan1 26,80 6DB9D5 6DB9D5}
  106. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup wlan1}${color5}${goto 150}Received: ${color2}${totaldown wlan1}
  107. ${else}
  108. ${if_existing /proc/net/route eth1}
  109. ${voffset -305}${goto 40}${color5}Up: ${color2}${upspeed eth1}${color5}${goto 150}Down: ${color2}${downspeed eth1}
  110. ${voffset 10}${goto 40}${upspeedgraph eth1 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph eth1 26,80 6DB9D5 6DB9D5}
  111. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup eth1}${color5}${goto 150}Received: ${color2}${totaldown eth1}
  112. ${else}
  113. ${if_existing /proc/net/route eth0}
  114. ${voffset -318}${goto 40}${color5}Up: ${color2}${upspeed eth0}${color5}${goto 150}Down: ${color2}${downspeed eth0}
  115. ${voffset 10}${goto 40}${upspeedgraph eth0 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph eth0 26,80 6DB9D5 6DB9D5}
  116. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup eth0}${color5}${goto 150}Received: ${color2}${totaldown eth0}
  117. ${else}
  118. ${if_existing /proc/net/route enp0s0}
  119. ${voffset -331}${goto 40}${color5}Up: ${color2}${upspeed enp0s0}${color5}${goto 150}Down: ${color2}${downspeed enp0s0}
  120. ${voffset 10}${goto 40}${upspeedgraph enp0s0 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph enp0s0 26,80 6DB9D5 6DB9D5}
  121. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup enp0s0}${color5}${goto 150}Received: ${color2}${totaldown enp0s0}
  122. ${else}
  123. ${if_existing /proc/net/route enp0s1}
  124. ${voffset -344}${goto 40}${color5}Up: ${color2}${upspeed enp0s1}${color5}${goto 150}Down: ${color2}${downspeed enp0s1}
  125. ${voffset 10}${goto 40}${upspeedgraph enp0s1 26,80 6DB9D5 6DB9D5}${goto 150}${downspeedgraph enp0s1 26,80 6DB9D5 6DB9D5}
  126. ${voffset 9}${goto 40}${color5}Sent: ${color2}${totalup enp0s1}${color5}${goto 150}Received: ${color2}${totaldown enp0s1}
  127. ${else}
  128. ${voffset -311}${goto 40}${color4}Network disconnected${color}
  129. ${image ~/.conky-weather/assets/Nord/God-Mode/offline.png -p 44,284 -s 16x16}
  130. ${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
  131. \
  132. # Various images including the icons of the forecast #
  133. \
  134. ${image ~/.conky-weather/assets/Nord/God-Mode/pressure.png -p 224,95 -s 16x16}\
  135. ${image ~/.conky-weather/assets/Nord/God-Mode/humidity.png -p 224,115 -s 16x16}\
  136. ${image ~/.conky-weather/assets/Nord/God-Mode/wind-2.png -p 224,136 -s 16x16}\
  137. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark5/$(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}\
  138. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark5/$(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}\
  139. ${execi 300 cp -f ~/.conky-weather/icons/weather-icons-dark5/$(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}\
Advertisement
Add Comment
Please, Sign In to add comment