First conky setup, gives me what I want.
Screenshot from 2015-08-21 18:39:14.jpg
.conkyrc
Code:
### ToDo
### DONE -Make a moon phase section with all relavant data
### DONE - find more icons for the more weather info
### DONE -display white text for portfolio
### DONE - align values in portfolio
### DONE - Position current icon and text better
### DONE - change colour scheme
# Conky Google Now style #
# Conky settings #
background no
update_interval 1
double_buffer yes
no_buffers yes
# Window specifications #
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
#own_window_colour FFFFFF
own_window_argb_visual true
own_window_argb_value 0
own_window_transparent yes
maximum_width 345
minimum_size 300 740
# Alignment #
alignment top_right
gap_x 30
gap_y 50
border_inner_margin 15
border_outer_margin 0
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=10
override_utf8_locale yes
imlib_cache_size 0
# Color scheme #
default_color FFFFFF
color1 FF8000 # used for Up, Down, Sent, Received on wifi
color2 FF9E5E # used for highs
color3 E77E5A # used on wifi up/down values
color4 33CCFF # blue used for lows A3E0FF
color5 FFA347 # used and headings
color6 FFFF00 # used for values
color7 DD4814 # hr bar and kernel version
TEXT
#################################################
### Get latest data, Display City and Country ###
#################################################
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=3569&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=15}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
#####################
### Date and time ###
#####################
${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "date=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
##########################################################
### Find code to display proper weather condition icon ###
##########################################################
${execi 300 cp -f ~/conky/png/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 30,65 -s 60x60}
#############################
### Find the current temp ###
#############################
${voffset -30}${font Open Sans Light:size=70}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}
######################################
### Display weather condition text ###
######################################
${voffset -15}${offset 30}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
#############################
### Future cast - day * 5 ###
#############################
${voffset 15}${goto 18}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 88}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 158}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${goto 228}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}${goto 298}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5' | tr '[a-z]' '[A-Z]'}
###########################################
### Future cast - code for weather icon ###
###########################################
${execi 300 cp -f ~/conky/png/$(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 0,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(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 70,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(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 140,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-4.png}${image ~/.cache/weather-4.png -p 210,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5').png ~/.cache/weather-5.png}${image ~/.cache/weather-5.png -p 280,200 -s 30x30}${voffset 20}
################################
### Future cast - high temps ###
################################
${color2}${goto 20}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 90}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 160}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 230}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 300}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°${color}
###############################
### Future cast - low temps ###
###############################
${color4}${goto 20}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 90}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 160}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 230}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 300}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°${color}
#######################
### Additional Info ###
#######################
${voffset 20}${image ~/conky/png/feels.png -p 0,295 -s 15x15}${goto 35}Feels Like: ${goto 235}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "chill=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}°${font}
${image ~/conky/png/humidity.png -p 0,315 -s 15x15}${goto 35}Humidity: ${goto 230}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%
${image ~/conky/png/wind.png -p 0,333 -s 15x15}${goto 35}Wind: ${goto 108}${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 "[^\"]*"}${image direction.png -p 260,330 -s 48x48} from the ${execpi 300 ~/conky/direction.sh}
${image ~/conky/png/visibility.png -p 0,350 -s 15x15}${goto 35}Visibility: ${goto 200}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "visibility=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "distance=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${image ~/conky/png/pressure.png -p 0,370 -s 15x15}${goto 35}Pressure: ${goto 140}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} - ${execpi 10 ~/conky/pressure.sh}
${image ~/conky/png/sun.png -p 0,390 -s 15x15}${goto 35}Sunrise/Sunset: ${goto 145}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunrise=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'} - ${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunset=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
############
### Moon ###
############
${execpi 3600 ~/conky/moon.sh}${image moon.png -p 25,445 -s 60x60}
${voffset -15}${goto 130}${color}Moon: ${alignr}${color}${execpi 300 sed -n 7p $HOME/conky/raw}${color}
${goto 130}${color}Moon Illumination: ${alignr}${color}${execpi 300 sed -n 15p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Distance: ${alignr}${execpi 300 sed -n 11p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Altitude: ${alignr}${execpi 300 sed -n 10p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Direction: ${alignr}${execpi 300 sed -n 9p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Full: ${alignr}${execpi 300 sed -n 12p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon New: ${alignr}${execpi 300 sed -n 13p $HOME/conky/out.txt}${color}
####################
### My Portfolio ###
####################
${image ~/conky/png/chart.png -p 5,547 -s 32x32}${voffset 10}${offset 45}${font Open Sans Light:size=15}${color}Portfolio${color}${font}${offset 10}${voffset -4}${color}${hr}${color}
${color}${alignc -15}Last${alignr 25}Change${font}${color}
${color}S&P/TSX ${color}${execpi 10 ~/conky/stock-conky-market.sh quote ^GSPTSE}
${color}NBC944 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote F0CAN05NRN.TO}
${color}NBC199 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote F0CAN05MM9.TO}
${color}NBC460 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote ALTAMIRACROI.TO}
${color}RBF592 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote F0CAN06ZCC.TO}
${color}CAD DOLLAR ${color}${goto 120}${execpi 10 ~/conky/stock-conky-market.sh quote CADUSD=X}
${color}Gold ${color}${goto 120}${execpi 10 ~/conky/stock-conky-market.sh quote GCU15.CMX}
${color}Oil ${color}${goto 120}${execpi 10 ~/conky/stock-conky-market.sh quote CLV15.NYM}
#####################
### Network Stuff ###
#####################
${image ~/conky/png/wifi.png -p 5,754 -s 32x32}${voffset 10}${offset 45}${font Open Sans Light:size=15}${color}Network${color}${font}${offset 10}${voffset -4}${color}${hr}${color}
${color}${voffset 10}Local IP${goto 120}Public IP${alignr 50}BitRate${alignr}Signal${color}
${color}${addr wlan1}${color}${goto 120}${color}${execi 300 curl icanhazip.com}${color}${alignr 35}${color}${wireless_bitrate wlan1}${color}${alignr}${color}${wireless_link_qual_perc wlan1}%${color}
${color}Up:${color} ${color}${upspeed wlan1}${color}${alignr}${color}Down:${color} ${color}${downspeed wlan1}${color}
${upspeedgraph wlan1 75,135 FF0000 33FF00}${alignr}${downspeedgraph wlan1 75,135 0000FF FF0000}
${color}Sent:${color} ${color}${totalup wlan1}${color}${alignr}${color}Received:${color} ${color}${totaldown wlan1}${color}
##############
### Footer ###
##############
${color}${hr}${color}
${image ~/conky/png/ubuntu.png -p 22,980 -s 60x60}
${voffset -15}${font DroidSans:style=Bold:size=20}${offset 100}${pre_exec lsb_release -sd || cat /etc/*release}${font}
${voffset 5}${offset 130}${font OpenLogos:size=14}${color}Z ${voffset -2}${font DroidSans:size=9}${color1}${sysname}${offset 3}${kernel}${font DroidSans:size=9}${machine}${font}
Bookmarks