Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- conky.config = {
- -- Teo's 3-NWS script. aka: "Old faithful"
- -- pkill -xf "conky -q -c $HOME/3_conky_forecast_nws/KT_test.conky" &
- --## Begin Window Settings ##################################################
- own_window = true,
- own_window_type = 'normal',
- own_window_transparent = true,--# Set to no if using ARGB
- own_window_hints = 'undecorated,below ,skip_pager skip_taskbar',
- own_window_colour = '778899',
- own_window_title = 'NWS USA TinyTest',
- own_window_class = 'Conky',
- --## ARGB - used for real transparency
- --## own_window_transparent no <-- a must!
- --own_window_argb_visual yes
- --own_window_argb_value 75 # 0 - clear | 255 - solid
- -- Use the Xdbe extension? (eliminates flicker)
- -- It is highly recommended to use own window with this one
- -- so double buffer won't be so big.
- double_buffer = true,
- minimum_width = 250, minimum_height = 0,
- maximum_width = 250,
- gap_x = 10,-- left-right
- gap_y = 20,-- up-down
- alignment = 'top_right',
- temperature_unit = 'fahrenheit',
- --################################################## End Window Settings ###
- --## Font Settings ##########################################################
- -- Use Xft (anti-aliased font and stuff)
- use_xft = true,
- --xftfont Anonymous Pro:bold:size=9
- --xftfont Anonymous Pro:size=9
- font = 'Liberation mono:bold:size=8',
- --xftfont Arial:size=9
- -- Alpha of Xft font. Must be a value at or between 1 and 0 ###
- xftalpha = 1,
- -- Force UTF8? requires XFT ###
- override_utf8_locale = true,
- uppercase = false,
- --##################################################### End Font Settings ###
- --## Color Settings #########################################################
- draw_shades = true,--no # amplifies text if yes p
- default_shade_color = '000000',
- draw_outline = false,-- amplifies text if yes
- default_outline_color = '000000',
- default_color = 'DCDCDC',--DCDCDC #Gainsboro
- color0 = 'C0C0C0',--Silver
- color1 = '778899',--LightSlateGray
- color2 = 'FFA07A',--LightSalmon
- color3 = '87CEFA',--LightSkyBlue
- color4 = '48D1CC',--MediumTurquoise
- color5 = 'FFDEAD',--NavajoWhite
- color6 = '00BFFF',--DeepSkyBlue
- color7 = 'B0E0E6',--PowderBlue
- color8 = 'FFD700',--Gold
- color9 = 'CD5C5C',--IndianRed
- --#################################################### End Color Settings ###
- --## Borders Section ########################################################
- draw_borders = false,
- -- Stippled borders?
- stippled_borders = 5,
- -- border margins
- border_inner_margin = 3,
- border_outer_margin = 0,
- -- border width
- border_width = 2,
- -- graph borders
- draw_graph_borders = false,--yes
- default_graph_width = 15, default_graph_height = 40,
- --#################################################### End Borders Secton ###
- --## Miscellaneous Section ##################################################
- -- Boolean value, if true, Conky will be forked to background when started.
- background = true,
- -- Adds spaces around certain objects to stop them from moving other things
- -- around, this only helps if you are using a mono font
- -- Options: right, left or none
- use_spacer = 'none',
- -- Default and Minimum size is 256 - needs more for single commands that
- -- "call" a lot of text IE: bash scripts
- --text_buffer_size 1024
- -- Subtract (file system) buffers from used memory?
- no_buffers = true,
- imlib_cache_size = 0,
- update_interval = 1,
- template0 = [[
- ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color5}${else}${color0}${endif}]],
- template1 = [[
- ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color0}${else}${color5}${endif}]],
- template2 = [[
- ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color6}${else}${color2}${endif}]],
- template3 = [[
- ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}" == "Tonight"}${color2}${else}${color6}${endif}]],
- };
- conky.text = [[
- ${texeci 600 bash $HOME/3_conky_forecast_nws/3_NWS}\
- ${font Liberation mono:bold:size=10}${color3}Weather ${font} ${hr 2}${color}\
- ${image $HOME/3_conky_forecast_nws/1.png -p 0,17 -s 60x60}
- ${goto 75}Temp: ${template2}${execpi 600 sed -n '2p' $HOME/3_conky_forecast_nws/period-names_temps}${color}
- ${goto 75}${color3}Now:${color} ${weather http://tgftp.nws.noaa.gov/data/observations/metar/stations/ kbvy temperature 10}°
- ${goto 75}Prec: ${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/precipitation}%
- ${goto 70}${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/period-names_temps}:
- ${alignc}${template1}${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws/messages}${color}
- ${color3}${hr}${color}
- ${execpi 600 sed -n '3p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template3}${template3}${execpi 600 sed -n '4p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '2p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template0}${execpi 600 sed -n '2p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '5p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template2}${execpi 600 sed -n '6p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '3p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template1}${execpi 600 sed -n '3p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '7p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template3}${execpi 600 sed -n '8p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '4p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template0}${execpi 600 sed -n '4p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '9p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template2}${execpi 600 sed -n '10p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '5p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template1}${execpi 600 sed -n '5p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '11p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template3}${execpi 600 sed -n '12p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '6p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template0}${execpi 600 sed -n '6p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '13p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template2}${execpi 600 sed -n '14p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '7p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template0}${execpi 600 sed -n '7p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '15p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template3}${execpi 600 sed -n '16p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '8p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template1}${execpi 600 sed -n '8p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '17p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template2}${execpi 600 sed -n '18p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '9p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template0}${execpi 600 sed -n '9p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '19p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template3}${execpi 600 sed -n '20p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '10p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template1}${execpi 600 sed -n '10p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '21p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template2}${execpi 600 sed -n '22p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '11p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template0}${execpi 600 sed -n '11p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '23p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template3}${execpi 600 sed -n '24p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '12p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template1}${execpi 600 sed -n '12p' $HOME/3_conky_forecast_nws/messages}${color}
- ${execpi 600 sed -n '25p' $HOME/3_conky_forecast_nws/period-names_temps}\
- ${goto 100}${template2}${execpi 600 sed -n '26p' $HOME/3_conky_forecast_nws/period-names_temps}${color}\
- ${goto 135}${execpi 600 sed -n '13p' $HOME/3_conky_forecast_nws/precipitation}%
- ${alignc}${template0}${execpi 600 sed -n '13p' $HOME/3_conky_forecast_nws/messages}${color}
- ${color3}${hr 2}
- ${image /home/me/3_conky_forecast_nws/sat.jpg -p 0,420 -s 250x250}
- ]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement