Advertisement
Guest User

conky theme

a guest
Aug 14th, 2019
2,572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.80 KB | None | 0 0
  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=0,
  11.  
  12. draw_shades=false,
  13. draw_outline=false,
  14. draw_borders=false,
  15.  
  16.  
  17. -------------------------------------
  18. --  Window Specifications
  19. -------------------------------------
  20. gap_x=0,
  21. gap_y=0,
  22.  
  23. alignment="middle_middle",
  24.  
  25. minimum_height=400,
  26. minimum_width=600,
  27.  
  28. own_window=true,
  29. own_window_type="dock",
  30. own_window_transparent=true,
  31. own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
  32.  
  33. own_window_argb_visual=true,
  34. own_window_argb_value=0,
  35.  
  36.  
  37. -------------------------------------
  38. --  Text Settings
  39. -------------------------------------
  40. use_xft=true,
  41. xftalpha=1,
  42. font="Droid Sans:size=10",
  43. text_buffer_size=256,
  44. override_utf8_locale=true,
  45.  
  46.  
  47. -------------------------------------
  48. --  Color Scheme
  49. -------------------------------------
  50. default_color='FFFFFF',
  51.  
  52. color0='FFFFFF', -- clock
  53. color1='FFFFFF', -- date
  54. color2='FFFFFF', -- current temperature
  55. color3='FFFFFF', -- high tempratures
  56. color4='FFFFFF', -- low tempratures
  57. color5='FFFFFF', -- days
  58.  
  59.  
  60. -------------------------------------
  61. --  Icon Sources
  62. -------------------------------------
  63. template0='~/.conky-vision/#fff__32',  --  today
  64. template1='~/.conky-vision/#fff__32',  --  +1day
  65. template2='~/.conky-vision/#fff__32',  --  +2days
  66. template3='~/.conky-vision/#fff__32',  --  +3days
  67. template4='~/.conky-vision/#fff__32',  --  +4days
  68.  
  69.  
  70. -------------------------------------
  71. --  API Key
  72. -------------------------------------
  73. template6="",
  74.  
  75.  
  76. -------------------------------------
  77. --  City ID
  78. -------------------------------------
  79. template7="",
  80.  
  81. -------------------------------------
  82. --  Temp Unit (default, metric, imperial)
  83. -------------------------------------
  84. template8="metric",
  85.  
  86.  
  87. -------------------------------------
  88. --  Locale (e.g. "es_ES.UTF-8")
  89. --  Leave empty for default
  90. -------------------------------------
  91. template9=""
  92.  
  93. }
  94.  
  95.  
  96. ---------------------------------------------------
  97. ---------------------------------------------------
  98.  
  99.  
  100. conky.text = [[
  101. \
  102. \
  103. \
  104. \
  105. ${execi 300 ~/.conky-vision/get_weather ${template6} ${template7} ${template8} ${template9}}\
  106. \
  107. \
  108. \
  109. \
  110. ${font Poiret One:weight=Light:size=96}${color0}\
  111. ${alignc}${time %H:%M}\
  112. ${font}${color}
  113. \
  114. \
  115. \
  116. \
  117. ${font Poiret One:weight=Light:size=28}${color1}\
  118. ${voffset 30}\
  119. ${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%A, %B %d"}\
  120. ${font}${color}
  121. \
  122. \
  123. \
  124. \
  125. ${font Poiret One:size=18}${color2}\
  126. ${voffset 36}\
  127. ${goto 60}${execi 300 jq .main.temp ~/.cache/conky-vision/weather.json | awk '{print int($1+0.5)}' # round num}°\
  128. ${font}${color}\
  129. \
  130. \
  131. \
  132. \
  133. ${font Poiret One:size=12}${color3}\
  134. ${goto 164}${execi 300 ~/.conky-vision/parse_weather 'max' '.main.temp' '1'}°\
  135. ${goto 272}${execi 300 ~/.conky-vision/parse_weather 'max' '.main.temp' '2'}°\
  136. ${goto 378}${execi 300 ~/.conky-vision/parse_weather 'max' '.main.temp' '3'}°\
  137. ${goto 484}${execi 300 ~/.conky-vision/parse_weather 'max' '.main.temp' '4'}°\
  138. ${font}${color}\
  139. \
  140. \
  141. \
  142. \
  143. ${font Poiret One:size=12}${color4}\
  144. ${voffset 52}\
  145. ${goto 218}${execi 300 ~/.conky-vision/parse_weather 'min' '.main.temp' '1'}°\
  146. ${goto 324}${execi 300 ~/.conky-vision/parse_weather 'min' '.main.temp' '2'}°\
  147. ${goto 430}${execi 300 ~/.conky-vision/parse_weather 'min' '.main.temp' '3'}°\
  148. ${goto 536}${execi 300 ~/.conky-vision/parse_weather 'min' '.main.temp' '4'}°\
  149. ${font}${color}
  150. \
  151. \
  152. \
  153. \
  154. ${font Poiret One:size=14}${color5}\
  155. ${voffset 20}\
  156. ${goto 76}${execi 300 LANG=${template9} LC_TIME=${template9} date +%a | gawk '{print toupper($0);}'}\
  157. ${goto 182}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +1day +%a | gawk '{print toupper($0);}'}\
  158. ${goto 288}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +2days +%a | gawk '{print toupper($0);}'}\
  159. ${goto 394}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +3days +%a | gawk '{print toupper($0);}'}\
  160. ${goto 500}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +4days +%a | gawk '{print toupper($0);}'}\
  161. ${font}${color}
  162. \
  163. \
  164. \
  165. \
  166. ${execi 300 cp -f ${template0}/$(jq .weather[0].id ~/.cache/conky-vision/weather.json).png ~/.cache/conky-vision/current.png}${image ~/.cache/conky-vision/current.png -p 72,266 -s 32x32}\
  167. ${execi 300 cp -f ${template1}/$(~/.conky-vision/parse_weather 'first' '.weather[0].id' '1').png ~/.cache/conky-vision/forecast-1.png}${image ~/.cache/conky-vision/forecast-1.png -p 178,266 -s 32x32}\
  168. ${execi 300 cp -f ${template2}/$(~/.conky-vision/parse_weather 'first' '.weather[0].id' '2').png ~/.cache/conky-vision/forecast-2.png}${image ~/.cache/conky-vision/forecast-2.png -p 284,266 -s 32x32}\
  169. ${execi 300 cp -f ${template3}/$(~/.conky-vision/parse_weather 'first' '.weather[0].id' '3').png ~/.cache/conky-vision/forecast-3.png}${image ~/.cache/conky-vision/forecast-3.png -p 390,266 -s 32x32}\
  170. ${execi 300 cp -f ${template4}/$(~/.conky-vision/parse_weather 'first' '.weather[0].id' '4').png ~/.cache/conky-vision/forecast-4.png}${image ~/.cache/conky-vision/forecast-4.png -p 496,266 -s 32x32}\
  171.  
  172.  
  173. # --- Get Spotify Cover ---
  174. ${if_running spotify}
  175. ${exec ~/.conky/conky-spotify/scripts/cover.sh}
  176. # --- Show now playing information ---
  177. ${voffset -40}
  178. ${goto 70}${font Poiret One:weight=Light:size=15}Title:
  179. ${goto 80}${font Poiret One:weight=Light:size=20}${exec ~/.conky/conky-spotify/scripts/title.sh}
  180. ${voffset -40}
  181. ${goto 70}${font Poiret One:weight=Light:size=15}Artist:
  182. ${goto 80}${font Poiret One:weight=Light::size=22}${exec ~/.conky/conky-spotify/scripts/artist.sh}
  183. ${voffset -40}
  184. ${goto 70}${font Poiret One:weight=Light:size=15}Album:
  185. ${goto 80}${font Poiret One:weight=Light::size=22}${exec ~/.conky/conky-spotify/scripts/album.sh}
  186. ${endif}
  187. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement