Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.35 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 390
  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. #own_window_argb_visual yes
  21. #own_window_argb_value 0
  22.  
  23. # Graphics settings #
  24. draw_shades no
  25. default_shade_color AAAAAA
  26. draw_outline no
  27. default_outline_color AAAAAA
  28. draw_borders no
  29.  
  30. # Text settings #
  31. use_xft yes
  32. xftalpha 0
  33. xftfont Droid Sans:size=10
  34. text_buffer_size 256
  35. override_utf8_locale yes
  36.  
  37. # Color scheme #
  38. default_color FFFFFF
  39. color1 3A3A3A
  40. color2 FFFFFF
  41. color3 F42828
  42.  
  43. TEXT
  44. #
  45. #
  46. #------------------------------------------------------------------------------------------
  47. # ! Various images
  48. #------------------------------------------------------------------------------------------
  49. #
  50. #
  51. ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=44418&u=f" -o ~/.cache/weather.xml}\
  52. ${image ~/.harmattan-assets/misc/Cards/Comfortable/fav-color.png -p 20,25 -s 228x229}\
  53. ${image ~/.harmattan-assets/misc/Cards/Comfortable/bottom-bg.png -p 20,254 -s 228x110}\
  54. ${image ~/.harmattan-assets/misc/Cards/Comfortable/shadow.png -p 14,19 -s 240x351}\
  55. ${image ~/.harmattan-assets/misc/Cards/Comfortable/separator-v.png -p 95,270 -s 1x83}\
  56. ${image ~/.harmattan-assets/misc/Cards/Comfortable/separator-v.png -p 172,270 -s 1x83}\
  57. ${image ~/.harmattan-assets/misc/Cards/Comfortable/separator-h.png -p 20,253 -s 228x4}\
  58. #
  59. #
  60. #------------------------------------------------------------------------------------------
  61. # ! The names of days
  62. #------------------------------------------------------------------------------------------
  63. #
  64. #
  65. ${color1}${font Droid Sans:size=10}${voffset 268}${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]'}
  66. ${color1}${font Droid Sans:size=10}${voffset -17}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}
  67. ${color1}${font Droid Sans:size=10}${voffset -17}${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]'}
  68. #
  69. #
  70. #------------------------------------------------------------------------------------------
  71. # ! Temperatures
  72. #------------------------------------------------------------------------------------------
  73. #
  74. #
  75. ${color1}${font Droid Sans:size=10}${voffset 53}${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'}°
  76. #
  77. #
  78. ${color1}${font Droid Sans:size=10}${voffset -17}${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'}°
  79. #
  80. #
  81. ${color1}${font Droid Sans:size=10}${voffset -17}${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'}°
  82. #
  83. #
  84. #------------------------------------------------------------------------------------------
  85. # ! Weather conditions section
  86. #------------------------------------------------------------------------------------------
  87. #
  88. #
  89. ${color2}${font Droid Sans:size=48}${goto 32}${voffset -204}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}\
  90. #
  91. #
  92. ${color2}${font Droid Sans:size=10}${alignr 54}${voffset -162}${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 "[^\"]*"}
  93. #
  94. #
  95. ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %
  96. #
  97. #
  98. ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${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 "[^\"]*"}
  99. #
  100. #
  101. ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunrise=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
  102. #
  103. #
  104. ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunset=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
  105. #
  106. #
  107. ${color2}${font Droid Sans:size=12}${goto 46}${voffset 26}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}\
  108. #
  109. #
  110. #------------------------------------------------------------------------------------------
  111. # ! Various images including the forecast icons
  112. #------------------------------------------------------------------------------------------
  113. #
  114. #
  115. ${image ~/.harmattan-assets/misc/Cards/Comfortable/pressure.png -p 224,37 -s 16x16}\
  116. ${image ~/.harmattan-assets/misc/Cards/Comfortable/humidity.png -p 224,74 -s 16x16}\
  117. ${image ~/.harmattan-assets/misc/Cards/Comfortable/wind-2.png -p 224,111 -s 16x16}\
  118. ${image ~/.harmattan-assets/misc/Cards/Comfortable/sunrise.png -p 224,148 -s 16x16}\
  119. ${image ~/.harmattan-assets/misc/Cards/Comfortable/sunset.png -p 224,185 -s 16x16}\
  120. ${execi 300 cp -f ~/.harmattan-assets/icons/big-white/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 32,46 -s 60x60}\
  121. ${execi 300 cp -f ~/.harmattan-assets/icons/small-#3a3a3a/$(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 42,296 -s 32x32}\
  122. ${execi 300 cp -f ~/.harmattan-assets/icons/small-#3a3a3a/$(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 118,296 -s 32x32}\
  123. ${execi 300 cp -f ~/.harmattan-assets/icons/small-#3a3a3a/$(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 194,296 -s 32x32}${font}\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement