Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Conky settings #
- background yes
- update_interval 1
- double_buffer yes
- no_buffers yes
- imlib_cache_size 10
- # Window specifications #
- gap_x 100
- gap_y 70
- minimum_size 268 390
- maximum_width 268
- own_window yes
- own_window_type normal # other options are: override/dock/desktop/panel
- own_window_transparent yes
- own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
- border_inner_margin 0
- border_outer_margin 0
- #alignment middle_middle
- #own_window_argb_visual yes
- #own_window_argb_value 0
- # Graphics settings #
- draw_shades no
- default_shade_color AAAAAA
- draw_outline no
- default_outline_color AAAAAA
- draw_borders no
- # Text settings #
- use_xft yes
- xftalpha 0
- xftfont Droid Sans:size=10
- text_buffer_size 256
- override_utf8_locale yes
- # Color scheme #
- default_color FFFFFF
- color1 3A3A3A
- color2 FFFFFF
- color3 F42828
- TEXT
- #
- #
- #------------------------------------------------------------------------------------------
- # ! Various images
- #------------------------------------------------------------------------------------------
- #
- #
- ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=44418&u=f" -o ~/.cache/weather.xml}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/fav-color.png -p 20,25 -s 228x229}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/bottom-bg.png -p 20,254 -s 228x110}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/shadow.png -p 14,19 -s 240x351}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/separator-v.png -p 95,270 -s 1x83}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/separator-v.png -p 172,270 -s 1x83}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/separator-h.png -p 20,253 -s 228x4}\
- #
- #
- #------------------------------------------------------------------------------------------
- # ! The names of days
- #------------------------------------------------------------------------------------------
- #
- #
- ${color1}${font Droid Sans:size=10}${voffset 268}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}
- ${color1}${font Droid Sans:size=10}${voffset -17}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}
- ${color1}${font Droid Sans:size=10}${voffset -17}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}
- #
- #
- #------------------------------------------------------------------------------------------
- # ! Temperatures
- #------------------------------------------------------------------------------------------
- #
- #
- ${color1}${font Droid Sans:size=10}${voffset 53}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°
- #
- #
- ${color1}${font Droid Sans:size=10}${voffset -17}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°
- #
- #
- ${color1}${font Droid Sans:size=10}${voffset -17}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°
- #
- #
- #------------------------------------------------------------------------------------------
- # ! Weather conditions section
- #------------------------------------------------------------------------------------------
- #
- #
- ${color2}${font Droid Sans:size=48}${goto 32}${voffset -204}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}\
- #
- #
- ${color2}${font Droid Sans:size=10}${alignr 54}${voffset -162}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
- #
- #
- ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %
- #
- #
- ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${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 "[^\"]*"}
- #
- #
- ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunrise=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
- #
- #
- ${color2}${font Droid Sans:size=10}${alignr 54}${voffset 20}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunset=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
- #
- #
- ${color2}${font Droid Sans:size=12}${goto 46}${voffset 26}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}\
- #
- #
- #------------------------------------------------------------------------------------------
- # ! Various images including the forecast icons
- #------------------------------------------------------------------------------------------
- #
- #
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/pressure.png -p 224,37 -s 16x16}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/humidity.png -p 224,74 -s 16x16}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/wind-2.png -p 224,111 -s 16x16}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/sunrise.png -p 224,148 -s 16x16}\
- ${image ~/.harmattan-assets/misc/Cards/Comfortable/sunset.png -p 224,185 -s 16x16}\
- ${execi 300 cp -f ~/.harmattan-assets/icons/big-white/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 32,46 -s 60x60}\
- ${execi 300 cp -f ~/.harmattan-assets/icons/small-#3a3a3a/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 42,296 -s 32x32}\
- ${execi 300 cp -f ~/.harmattan-assets/icons/small-#3a3a3a/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 118,296 -s 32x32}\
- ${execi 300 cp -f ~/.harmattan-assets/icons/small-#3a3a3a/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 194,296 -s 32x32}${font}\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement