SHARE
TWEET

Untitled

a guest Sep 16th, 2018 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. conky.config = {
  2. -- Teo's 3-NWS script. aka: "Old faithful"
  3. -- pkill -xf "conky -q -c $HOME/3_conky_forecast_nws/KT_test.conky" &
  4. --##  Begin Window Settings  ##################################################
  5.     own_window = true,
  6.     own_window_type = 'normal',
  7.     own_window_transparent = true,--# Set to no if using ARGB
  8.     own_window_hints = 'undecorated,below ,skip_pager skip_taskbar',
  9.     own_window_colour = '778899',
  10.     own_window_title = 'NWS USA TinyTest',
  11.     own_window_class = 'Conky',
  12. --## ARGB - used for real transparency
  13. --## own_window_transparent no <-- a must!
  14. --own_window_argb_visual yes
  15. --own_window_argb_value 75 # 0 - clear | 255 - solid
  16.  
  17. -- Use the Xdbe extension? (eliminates flicker)
  18. -- It is highly recommended to use own window with this one
  19. -- so double buffer won't be so big.
  20.     double_buffer = true,
  21.  
  22.     minimum_width = 250, minimum_height = 0,
  23.     maximum_width = 250,
  24.  
  25.     gap_x = 10,-- left-right
  26.     gap_y = 20,-- up-down
  27.  
  28.     alignment = 'top_right',
  29.         temperature_unit = 'fahrenheit',
  30.  
  31. --##################################################  End Window Settings  ###
  32. --##  Font Settings  ##########################################################
  33. -- Use Xft (anti-aliased font and stuff)
  34.     use_xft = true,
  35. --xftfont Anonymous Pro:bold:size=9
  36. --xftfont Anonymous Pro:size=9
  37.     font = 'Liberation mono:bold:size=8',
  38. --xftfont Arial:size=9
  39. -- Alpha of Xft font. Must be a value at or between 1 and 0 ###
  40.     xftalpha = 1,
  41. -- Force UTF8? requires XFT ###
  42.     override_utf8_locale = true,
  43.  
  44.     uppercase = false,
  45. --#####################################################  End Font Settings  ###
  46. --##  Color Settings  #########################################################
  47.     draw_shades = true,--no # amplifies text if yes p
  48.     default_shade_color = '000000',
  49.  
  50.     draw_outline = false,-- amplifies text if yes
  51.     default_outline_color = '000000',
  52.  
  53.     default_color = 'DCDCDC',--DCDCDC #Gainsboro
  54.     color0 = 'C0C0C0',--Silver
  55.     color1 = '778899',--LightSlateGray
  56.     color2 = 'FFA07A',--LightSalmon
  57.     color3 = '87CEFA',--LightSkyBlue
  58.     color4 = '48D1CC',--MediumTurquoise
  59.     color5 = 'FFDEAD',--NavajoWhite
  60.     color6 = '00BFFF',--DeepSkyBlue
  61.     color7 = 'B0E0E6',--PowderBlue
  62.     color8 = 'FFD700',--Gold
  63.     color9 = 'CD5C5C',--IndianRed
  64. --####################################################  End Color Settings  ###
  65. --##  Borders Section  ########################################################
  66.     draw_borders = false,
  67. -- Stippled borders?
  68.     stippled_borders = 5,
  69. -- border margins
  70.     border_inner_margin = 3,
  71.     border_outer_margin = 0,
  72. -- border width
  73.     border_width = 2,
  74. -- graph borders
  75.     draw_graph_borders = false,--yes
  76.     default_graph_width = 15, default_graph_height = 40,
  77. --####################################################  End Borders Secton  ###
  78. --##  Miscellaneous Section  ##################################################
  79.  
  80. -- Boolean value, if true, Conky will be forked to background when started.
  81.     background = true,
  82.  
  83. -- Adds spaces around certain objects to stop them from moving other things
  84. -- around, this only helps if you are using a mono font
  85. -- Options: right, left or none
  86.     use_spacer = 'none',
  87.  
  88. -- Default and Minimum size is 256 - needs more for single commands that
  89. -- "call" a lot of text IE: bash scripts
  90. --text_buffer_size 1024
  91.  
  92. -- Subtract (file system) buffers from used memory?
  93.     no_buffers = true,
  94.     imlib_cache_size = 0,
  95.  
  96.     update_interval = 1,
  97.  
  98.     template0 = [[
  99. ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color5}${else}${color0}${endif}]],
  100.     template1 = [[
  101. ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color0}${else}${color5}${endif}]],
  102.     template2 = [[
  103. ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color6}${else}${color2}${endif}]],
  104.     template3 = [[
  105. ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color2}${else}${color6}${endif}]],
  106.  
  107.  
  108. };
  109.  
  110. conky.text = [[
  111. ${texeci 600 bash $HOME/3_conky_forecast_nws/3_NWS}\
  112. ${font Liberation mono:bold:size=10}${color3}Weather ${font} ${hr 2}${color}\
  113. ${image $HOME/3_conky_forecast_nws/1.png -p 0,17 -s 60x60}
  114.  
  115. ${goto 75}Temp: ${template2}${execpi 600 sed -n '2p' $HOME/3_conky_forecast_nws/period-names_temps}${color}
  116.  
  117. ${goto 75}${color3}Now:${color}  ${weather http://tgftp.nws.noaa.gov/data/observations/metar/stations/ kbvy temperature 10}°
  118. ${goto 75}Prec: ${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/precipitation}%
  119.  
  120. ${goto 70}${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}:
  121. ${alignc}${template1}${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/messages}${color}
  122. ${color3}${hr}${color}
  123. ${execpi 600 sed -n '3p' $HOME/3_conky_forecast_nws/period-names_temps}\
  124. ${goto 100}${template3}${template3}${execpi 600 sed -n '4p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  125. ${goto 135}${execpi 600 sed -n '2p' $HOME/3_conky_forecast_nws/precipitation}%
  126. ${alignc}${template0}${execpi 600 sed -n '2p' $HOME/3_conky_forecast_nws/messages}${color}
  127. ${execpi 600 sed -n '5p' $HOME/3_conky_forecast_nws/period-names_temps}\
  128. ${goto 100}${template2}${execpi 600 sed -n '6p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  129. ${goto 135}${execpi 600 sed -n '3p' $HOME/3_conky_forecast_nws/precipitation}%
  130. ${alignc}${template1}${execpi 600 sed -n '3p' $HOME/3_conky_forecast_nws/messages}${color}
  131. ${execpi 600 sed -n '7p' $HOME/3_conky_forecast_nws/period-names_temps}\
  132. ${goto 100}${template3}${execpi 600 sed -n '8p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  133. ${goto 135}${execpi 600 sed -n '4p' $HOME/3_conky_forecast_nws/precipitation}%
  134. ${alignc}${template0}${execpi 600 sed -n '4p' $HOME/3_conky_forecast_nws/messages}${color}
  135. ${execpi 600 sed -n '9p' $HOME/3_conky_forecast_nws/period-names_temps}\
  136. ${goto 100}${template2}${execpi 600 sed -n '10p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  137. ${goto 135}${execpi 600 sed -n '5p' $HOME/3_conky_forecast_nws/precipitation}%
  138. ${alignc}${template1}${execpi 600 sed -n '5p' $HOME/3_conky_forecast_nws/messages}${color}
  139. ${execpi 600 sed -n '11p' $HOME/3_conky_forecast_nws/period-names_temps}\
  140. ${goto 100}${template3}${execpi 600 sed -n '12p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  141. ${goto 135}${execpi 600 sed -n '6p' $HOME/3_conky_forecast_nws/precipitation}%
  142. ${alignc}${template0}${execpi 600 sed -n '6p' $HOME/3_conky_forecast_nws/messages}${color}
  143. ${execpi 600 sed -n '13p' $HOME/3_conky_forecast_nws/period-names_temps}\
  144. ${goto 100}${template2}${execpi 600 sed -n '14p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  145. ${goto 135}${execpi 600 sed -n '7p' $HOME/3_conky_forecast_nws/precipitation}%
  146. ${alignc}${template0}${execpi 600 sed -n '7p' $HOME/3_conky_forecast_nws/messages}${color}
  147. ${execpi 600 sed -n '15p' $HOME/3_conky_forecast_nws/period-names_temps}\
  148. ${goto 100}${template3}${execpi 600 sed -n '16p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  149. ${goto 135}${execpi 600 sed -n '8p' $HOME/3_conky_forecast_nws/precipitation}%
  150. ${alignc}${template1}${execpi 600 sed -n '8p' $HOME/3_conky_forecast_nws/messages}${color}
  151. ${execpi 600 sed -n '17p' $HOME/3_conky_forecast_nws/period-names_temps}\
  152. ${goto 100}${template2}${execpi 600 sed -n '18p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  153. ${goto 135}${execpi 600 sed -n '9p' $HOME/3_conky_forecast_nws/precipitation}%
  154. ${alignc}${template0}${execpi 600 sed -n '9p' $HOME/3_conky_forecast_nws/messages}${color}
  155. ${execpi 600 sed -n '19p' $HOME/3_conky_forecast_nws/period-names_temps}\
  156. ${goto 100}${template3}${execpi 600 sed -n '20p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  157. ${goto 135}${execpi 600 sed -n '10p' $HOME/3_conky_forecast_nws/precipitation}%
  158. ${alignc}${template1}${execpi 600 sed -n '10p' $HOME/3_conky_forecast_nws/messages}${color}
  159. ${execpi 600 sed -n '21p' $HOME/3_conky_forecast_nws/period-names_temps}\
  160. ${goto 100}${template2}${execpi 600 sed -n '22p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  161. ${goto 135}${execpi 600 sed -n '11p' $HOME/3_conky_forecast_nws/precipitation}%
  162. ${alignc}${template0}${execpi 600 sed -n '11p' $HOME/3_conky_forecast_nws/messages}${color}
  163. ${execpi 600 sed -n '23p' $HOME/3_conky_forecast_nws/period-names_temps}\
  164. ${goto 100}${template3}${execpi 600 sed -n '24p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  165. ${goto 135}${execpi 600 sed -n '12p' $HOME/3_conky_forecast_nws/precipitation}%
  166. ${alignc}${template1}${execpi 600 sed -n '12p' $HOME/3_conky_forecast_nws/messages}${color}
  167. ${execpi 600 sed -n '25p' $HOME/3_conky_forecast_nws/period-names_temps}\
  168. ${goto 100}${template2}${execpi 600 sed -n '26p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
  169. ${goto 135}${execpi 600 sed -n '13p' $HOME/3_conky_forecast_nws/precipitation}%
  170. ${alignc}${template0}${execpi 600 sed -n '13p' $HOME/3_conky_forecast_nws/messages}${color}
  171. ${color3}${hr 2}
  172. ${image /home/me/3_conky_forecast_nws/sat.jpg -p 0,420 -s 250x250}
  173. ]];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top