Advertisement
okubax

conky-weather

Jun 3rd, 2013
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. # Conky Google Now style #
  2.  
  3. # Conky settings #
  4. background no
  5. update_interval 1
  6. double_buffer yes
  7. no_buffers yes
  8.  
  9. # Window specifications #
  10. own_window yes
  11. own_window_type conky
  12. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  13. own_window_title
  14. own_window_colour 2D2D2D
  15.  
  16. minimum_size 250 0
  17. maximum_width 250
  18.  
  19. # Alignment #
  20. alignment tr
  21. gap_x 40
  22. gap_y 60
  23.  
  24. border_inner_margin 15
  25. #border_outer_margin 0
  26.  
  27. # Graphics settings #
  28. draw_shades no
  29. draw_outline no
  30. draw_borders no
  31. draw_graph_borders no
  32.  
  33. # Text settings #
  34. use_xft yes
  35. xftalpha 0
  36. xftfont Open Sans Light:size=10
  37.  
  38. override_utf8_locale yes
  39.  
  40. imlib_cache_size 0
  41.  
  42. # Color scheme #
  43. default_color DCDCDC
  44.  
  45. color1 0099CC
  46. color2 9933CC
  47. color3 669900
  48. color4 FF8800
  49. color5 CC0000
  50. color6 AAAAAA
  51. color7 484848
  52.  
  53. TEXT
  54. ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=26948015&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=15}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
  55. ${font Open Sans Light:size=45}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}
  56. ${execi 300 cp -f ~/.config/conky/conky_google_now/weathericons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 0,45 -s 60x60}
  57. ${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
  58. ${color6}${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}
  59. ${execi 300 cp -f ~/.config/conky/conky_google_now/weathericons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1).png ~/.cache/weather-today.png}${image ~/.cache/weather-today.png -p 0,175 -s 30x30}${execi 300 cp -f ~/.config/conky/conky_google_now/weathericons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1).png ~/.cache/weather-tomorrow.png}${image ~/.cache/weather-tomorrow.png -p 130,175 -s 30x30}
  60. ${goto 60}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}${goto 190}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}
  61. ${goto 60}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}° ${color6}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}°${color}${goto 190}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}° ${color6}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}°${color}${voffset 0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement