Advertisement
okubax

conky-weather-minimal

May 17th, 2013
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. # Conky Google Now style #
  2. # Download Weather files from https://dl.dropboxusercontent.com/u/413612/conky_google_now.tar.gz
  3.  
  4. # Conky settings #
  5. background no
  6. update_interval 1
  7. double_buffer yes
  8. no_buffers yes
  9.  
  10. # Window specifications #
  11. own_window yes
  12. own_window_type conky
  13. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  14. own_window_title
  15. own_window_colour 2D2D2D
  16.  
  17. minimum_size 250 0
  18. maximum_width 250
  19.  
  20. # Alignment #
  21. alignment tr
  22. gap_x 40
  23. gap_y 60
  24.  
  25. border_inner_margin 15
  26. #border_outer_margin 0
  27.  
  28. # Graphics settings #
  29. draw_shades no
  30. draw_outline no
  31. draw_borders no
  32. draw_graph_borders no
  33.  
  34. # Text settings #
  35. use_xft yes
  36. xftalpha 0
  37. xftfont Open Sans Light:size=10
  38.  
  39. override_utf8_locale yes
  40.  
  41. imlib_cache_size 0
  42.  
  43. # Color scheme #
  44. default_color DCDCDC
  45.  
  46. color1 0099CC
  47. color2 9933CC
  48. color3 669900
  49. color4 FF8800
  50. color5 CC0000
  51. color6 AAAAAA
  52. color7 484848
  53.  
  54. TEXT
  55. ${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}
  56. ${font Open Sans Light:size=45}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}
  57. ${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}
  58. ${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
  59. ${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}
  60. ${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}
  61. ${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}
  62. ${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 15}
  63. ${color7}${hr}${color}
  64. ${voffset -30}
  65. ${voffset 10}${offset 4}${color1}CPU:${color}${color3} ${cpu cpu0}%
  66. ${offset 4}${cpugraph cpu0 50,120 FF8800 FF8800}
  67. ${offset 4}${color1}Gmail(Unread):${color}${color3} ${execpi 300 python3 /home/ajibola/scripts/gmail.py}
  68. ${offset 4}${color1}Temp:${color}${color3} ${acpitemp}ºC
  69. ${offset 4}${color1}RAM:${color}${color3} $memperc% ${color}${alignr 4}${color1}SWAP:${color}${color3} $swapperc${color3}%${alignr}
  70. ${offset 4}${color1}Uptime:${color} ${alignr 4}${color3}${uptime}${color}
  71. ${offset 4}${color1}Root:${color} ${alignr 4}${color3}${fs_free /root}/${fs_size /root}${color}
  72. ${offset 4}${color1}Var:${color} ${alignr 4}${color3}${fs_free /var}/${fs_size /var}${color}
  73. ${offset 4}${color1}Home:${color} ${alignr 4}${color3}${fs_free /home}/${fs_size /home}${color}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement