Advertisement
faiz14

.Conkyrc

Apr 7th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. conky.config = {
  2.  
  3. -------------------------------------
  4. --  Generic Settings
  5. -------------------------------------
  6. background=true,
  7. update_interval=1,
  8. double_buffer=true,
  9. no_buffers=true,
  10. imlib_cache_size=10,
  11.  
  12. draw_shades=false,
  13. draw_outline=false,
  14. draw_borders=false,
  15. draw_graph_borders=false,
  16. default_graph_height=26,
  17. default_graph_width=80,
  18. show_graph_scale=false,
  19. show_graph_range=false,
  20.  
  21.  
  22. -------------------------------------
  23. --  Window Specifications
  24. -------------------------------------
  25. gap_x=100,
  26. gap_y=70,
  27. minimum_height=153,
  28. minimum_width=268,
  29. own_window=true,
  30. own_window_type="normal",
  31. own_window_transparent=true,
  32. own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
  33. border_inner_margin=0,
  34. border_outer_margin=0,
  35. --alignment="middle_middle",
  36. --own_window_argb_visual=true,
  37. --own_window_argb_value=0,
  38.  
  39.  
  40. -------------------------------------
  41. --  Text Settings
  42. -------------------------------------
  43. use_xft=true,
  44. xftalpha=1,
  45. font="Droid Sans:size=10",
  46. text_buffer_size=256,
  47. override_utf8_locale=true,
  48. imlib_cache_size=0,
  49.  
  50.  
  51. -------------------------------------
  52. --  Color Scheme
  53. -------------------------------------
  54. default_color="FFFFFF",
  55. color1="FFFFFF",
  56. color2="FFFFFF",
  57. color3="D64937",
  58.  
  59.  
  60. -------------------------------------
  61. --  API Key
  62. -------------------------------------
  63. template6="301d8a9d63d6b61a3ee48be5552d6d1f",
  64.  
  65.  
  66. -------------------------------------
  67. --  City ID
  68. -------------------------------------
  69. template7="1642549",
  70.  
  71.  
  72. -------------------------------------
  73. --  Temp Unit (default, metric, imperial)
  74. -------------------------------------
  75. template8="imperial",
  76.  
  77.  
  78. -------------------------------------
  79. --  Locale (e.g. "es_ES.UTF-8")
  80. --  Leave empty for default
  81. -------------------------------------
  82. template9="es_ES.UTF-8"
  83.  
  84. }
  85.  
  86.  
  87. ---------------------------------------------------
  88. ---------------------------------------------------
  89.  
  90.  
  91. conky.text = [[
  92. \
  93. \
  94. ${execi 300 ~/.harmattan-assets/get_weather ${template6} ${template7} ${template8} ${template9}}\
  95. \
  96. \
  97. \
  98. \
  99. \
  100. \
  101. \
  102. \
  103. \
  104. ${color1}${voffset 38}${alignc 90}${execi 300 LANG=${template9} LC_TIME=${template9} date +%^a}${color}
  105. ${color1}${voffset -15}${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +1day +%^a}${color}
  106. ${color1}${voffset -15}${alignc -90}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +2day +%^a}${color}
  107. \
  108. \
  109. \
  110. \
  111. ${color2}${voffset 51}${font Droid Sans :size=12}${alignc 90}${execi 300 jq -r .main.temp ~/.cache/harmattan-conky/weather.json | awk '{print int($1+0.5)}' # round num}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}${font}${color}
  112. ${voffset -15}${color2}${alignc}${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_min' '1'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}/${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_max' '1'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}${color}
  113. ${voffset -15}${color2}${alignc -90}${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_min' '2'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}/${execi 300 ~/.harmattan-assets/parse_weather 'avg' '.main.temp_max' '2'}${if_match "$template8" == "metric"} °C${else}${if_match "$template8" == "imperial"} °F${else}${if_match "$template8" == "default"} K${endif}${endif}${endif}${color}
  114. \
  115. \
  116. \
  117. \
  118. ${execi 300 cp -f ~/.harmattan-assets/icons/#fff__32/$(jq .weather[0].id ~/.cache/harmattan-conky/weather.json).png ~/.cache/harmattan-conky/weather.png}${image ~/.cache/harmattan-conky/weather.png -p 27,65 -s 32x32}\
  119. ${execi 300 cp -f ~/.harmattan-assets/icons/#fff__32/$(~/.harmattan-assets/parse_weather 'first' '.weather[0].id' '1').png ~/.cache/harmattan-conky/weather-2.png}${image ~/.cache/harmattan-conky/weather-2.png -p 118,65 -s 32x32}\
  120. ${execi 300 cp -f ~/.harmattan-assets/icons/#fff__32/$(~/.harmattan-assets/parse_weather 'first' '.weather[0].id' '2').png ~/.cache/harmattan-conky/weather-3.png}${image ~/.cache/harmattan-conky/weather-3.png -p 209,65 -s 32x32}${font}\
  121. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement