Guys...I am LOVIN' 1.7.1.1!!! I feel as though a whole new world is opened up with this ${image} thing
Now it just needs to be able to control whether the image is above or below the text & other Conky items...At the minute, it only draws images *below* everything, although it will draw images on top of one another in the order that they are called...
My latest effort has a couple different ${if} statements...So here it is "normally":
Screenshot 060809.png
Then when wireless is on:
Screenshot Wireless 060809.png
And if Rhythmbox is playing:
Screenshot Wireless RB 060809.png
So here's my latest .conkyrc:
Code:
background no
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_class Conky # Required to exclude from Compiz shadows
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
double_buffer yes # Required to eliminate flicker
no_buffers yes
text_buffer_size 2048 # Required for conkyForecast output
imlib_cache_size 0 # Required for Rhythmbox cover art
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
use_spacer none
minimum_size 1000 576 # Defines Conky window to be 1024x600 with 12px padding
alignment top_left
gap_x 12 # Positions Conky window at the correct padding
gap_y 12
uppercase no
use_xft yes
xftfont saxMono:size=8
xftalpha 0.8
default_color 000000
color1 E6C37E
# This .conkyrc draws the following:
# -- Checks for wireless; if on, displays the wireless icon
# -- Checks if Rhythmbox is running; if so, displays mouth and speech bubble, if not, does nothing
# -- Writes system info
# -- Displays conkyForecast
#
# Requires:
# -- Conky version 1.7.1.1 with imlib2 and wlan enabled
# -- font: saxMono, from dafont.com
# -- wireless_icon.png
# -- Rhythmbox + conkyRhythmbox
# -- speech_bubble.png
# -- font: Denne's Old Handwriting, from dafont.com
# -- conkyForecast + conkyForecast.template
TEXT
${if_existing /proc/net/route wlan0}${image /home/alison/Pictures/wireless_icon.png -p 195,5 -s 58x50}${endif}
${if_running rhythmbox}${image /home/alison/Pictures/mouth.png -p 310,100 -s 75x75}${image /home/alison/Pictures/speech_bubble.png -p 425,0 -s 350x150}
${exec cp "`conkyRhythmbox --datatype=CA | sed -e 's/\\\//g'`" /home/alison/Pictures/.album}${image /home/alison/Pictures/.album -p 500,34 -s 64x64}
${font Denne's Old Handwriting:size=20}${voffset 3}${goto 572}${scroll 15 ${execp conkyRhythmbox --datatype=AR} }
${goto 572}${scroll 15 ${execp conkyRhythmbox --datatype=TI} }${font}
${voffset -83}${endif}
${voffset 198}${goto 320}${font Denne's Old Handwriting:size=50}${time %H}:${time %M}${font Denne's Old Handwriting:size=30} ${time %a}, ${time %d} ${time %b} ${time %Y}${font}
${goto 320}${battery_bar 3,442 BAT1}
${goto 320}${voffset -5}${fs_bar 3,442 /}
${goto 320}${voffset -5}${cpubar cpu0 3,442}
${goto 320}${font Denne's Old Handwriting:size=12}CPU
${goto 320}${cpu cpu0} %
${goto 360}${voffset -42}${font saxMono:size=9}[[ ${top pid 1} ${top name 1}${goto 687}(${top cpu 1}) ]]
${goto 360}[[ ${top pid 2} ${top name 2}${goto 687}(${top cpu 2}) ]]
${goto 360}[[ ${top pid 3} ${top name 3}${goto 687}(${top cpu 3}) ]]
${goto 360}[[ ${top pid 4} ${top name 4}${goto 687}(${top cpu 4}) ]]
${goto 360}[[ ${top pid 5} ${top name 5}${goto 687}(${top cpu 5}) ]]
${voffset 20}
${goto 320}${membar 3,442}
${goto 320}${font Denne's Old Handwriting:size=12}MEM
${goto 320}${memperc} %
${goto 360}${voffset -42}${font saxMono:size=9}[[ ${top_mem pid 1} ${top_mem name 1}${goto 687}(${top_mem mem 1}) ]]
${goto 360}[[ ${top_mem pid 2} ${top_mem name 2}${goto 687}(${top_mem mem 2}) ]]
${goto 360}[[ ${top_mem pid 3} ${top_mem name 3}${goto 687}(${top_mem mem 3}) ]]
${goto 360}[[ ${top_mem pid 4} ${top_mem name 4}${goto 687}(${top_mem mem 4}) ]]
${goto 360}[[ ${top_mem pid 5} ${top_mem name 5}${goto 687}(${top_mem mem 5}) ]]
${voffset -483}${color1}${execpi 360 conkyForecast --location=UKXX0147 --template=/usr/share/conkyforecast/conkyForecast.template}${color}
and my conkyForecast.template:
Code:
${font ConkyWeather:size=50}[--datatype=WF]
${font MoonPhases:size=45}[--datatype=WF]
${font ConkyWeather:size=50}[--datatype=WF --startday=1]
${font ConkyWeather:size=50}[--datatype=WF --startday=2]
${font ConkyWeather:size=50}[--datatype=WF --startday=3]
${font ConkyWeather:size=50}[--datatype=WF --startday=4]
${font ConkyWeather:size=50}[--datatype=WF --startday=5]
${font ConkyWeather:size=50}[--datatype=WF --startday=6]
${font ConkyWeather:size=50}[--datatype=WF --startday=7]${font}
${voffset -573}${goto 80}${font Denne's Old Handwriting:size=16}Today
${goto 80}[--datatype=HT --hideunits --centeredwidth=3] / [--datatype=LT --hideunits --centeredwidth=3]
${voffset 15}${goto 80}Tonight
${goto 80}[--datatype=MP]
${voffset 15}${goto 80}[--datatype=DW --startday=1]
${goto 80}[--datatype=HT --startday=1 --hideunits --centeredwidth=3] / [--datatype=LT --startday=1 --hideunits --centeredwidth=3]
${voffset 15}${goto 80}[--datatype=DW --startday=2]
${goto 80}[--datatype=HT --startday=2 --hideunits --centeredwidth=3] / [--datatype=LT --startday=2 --hideunits --centeredwidth=3]
${voffset 15}${goto 80}[--datatype=DW --startday=3]
${goto 80}[--datatype=HT --startday=3 --hideunits --centeredwidth=3] / [--datatype=LT --startday=3 --hideunits --centeredwidth=3]
${voffset 15}${goto 80}[--datatype=DW --startday=4]
${goto 80}[--datatype=HT --startday=4 --hideunits --centeredwidth=3] / [--datatype=LT --startday=4 --hideunits --centeredwidth=3]
${voffset 15}${goto 80}[--datatype=DW --startday=5]
${goto 80}[--datatype=HT --startday=5 --hideunits --centeredwidth=3] / [--datatype=LT --startday=5 --hideunits --centeredwidth=3]
${voffset 15}${goto 80}[--datatype=DW --startday=6]
${goto 80}[--datatype=HT --startday=6 --hideunits --centeredwidth=3] / [--datatype=LT --startday=6 --hideunits --centeredwidth=3]
${voffset 15}${goto 80}[--datatype=DW --startday=7]
${goto 80}[--datatype=HT --startday=7 --hideunits --centeredwidth=3] / [--datatype=LT --startday=7 --hideunits --centeredwidth=3]
Wallpaper is from 4scrape, and I'm using conkyForecast and conkyRhythmbox.
Bookmarks