conkyrccalendar
This is an old revision of the document!
Configuración para ~/.conky/.conkyrcCalendar con ubicación Huesca
background yes
out_to_console no
out_to_stderr no
out_to_x yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
total_run_times 0
update_interval 1.0
alignment tr
gap_x 20
gap_y 50
maximum_width 276
minimum_size 276 350
border_inner_margin 0
border_outer_margin 0
border_width 0
own_window yes
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual no
own_window_argb_value 255
own_window_transparent yes
#own_window_transparent no
own_window_type desktop
#own_window_type override
alignment top_right
default_color e4e4e4
default_outline_color 000000
default_shade_color 222222
color1 FFFFFF
color2 FFFFFF
color3 FFFFFF
color4 FFFFFF
color5 FFFFFF
color6 f16c26
color7 333333
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
override_utf8_locale yes
use_xft yes
xftalpha 0.8
xftfont Droid Sans:style=Bold:pixelsize=12
lua_load conkyrcCalendar.lua
TEXT
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=762456&u=c" -o ~/.cache/weather.xml}
${font Raleway:weight=Light :size=50}${voffset 10}${alignc}${time %H}${alignc}:${alignc}${time %M}
${voffset -100}${lua_parse calendar}
\
# The name of the days #
\
${color1}${voffset 10}${alignc 85}${execi 300 LANG=es_ES.UTF-8 date -d +0day +%a | tr '[a-z]' '[A-Z]'}${color}
${color1}${voffset -15}${alignc 5}${execi 300 LANG=es_ES.UTF-8 date -d +1day +%a | tr '[a-z]' '[A-Z]'}${color}
${color1}${voffset -15}${alignc -72}${execi 300 LANG=es_ES.UTF-8 date -d +2day +%a | tr '[a-z]' '[A-Z]'}${color}
\
# The temperatures #
\
${color3}${voffset 53}${font Droid Sans :size=12}${alignc 77}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${color}
${voffset -15}${color2}${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'}°${color}
${voffset -15}${color2}${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'}°${color}
\
# The icons of the forecast and condition #
\
${execi 300 cp -f ~/.conky-calendar-icons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 40,310 -s 32x32}\
${execi 300 cp -f ~/.conky-calendar-icons/$(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,310 -s 32x32}\
${execi 300 cp -f ~/.conky-calendar-icons/$(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 196,310 -s 32x32}${font}\
conkyrccalendar.1411459192.txt.gz · Last modified: 2015/12/01 08:41 (external edit)