A novice's guide to the wide world of Linux
Another Post About Conky
After switching around distros for a while, I think I shall stick with Fedora. The biggest change is using yum instead of apt. I’m tempted to created a script that says “hey she really meant yum this instead” but that requires some time.
After playing around with wallpapers and configurations for conky that I didn’t like, I finally came across one that I can live with for a little while (if you’ve ever really played with conky you can understand how easy it is just to get lost playing with the code).
Now for the break down of it:
- txt
.conky_txt
-
# *.txt files and such
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
#own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 300 250
-
maximum_width 300
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
#border_margin 2
-
border_inner_margin
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment top_left
-
gap_x 355
-
gap_y 255
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
-
color1 FFFFFF
-
color2 000000
-
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${font Sans:bold:size=10}${color2}MOO${hr 2}
-
${color1}${font mono:size=9}${execi 1200 fortune -s | fold -w30 | cowthink -W 30 -b -n -f three-eyes}
-
${font Sans:bold:size=10}${color2}LOVE${hr 2}
-
${color1}${font mono:size=9}${execi 30 cat $HOME/.conky/txt/.tux.txt}
-
${font Sans:bold:size=10}${color2}TO DO${hr 2}
-
${font}${color1}${execi 30 cat $HOME/.conky/txt/.TODO.txt}
-
${color2}${stippled_hr}
.tux.txt (you don’t have to save it with a file extension for a plain text file, I just do because I did grow up on Windows; also, I know the alignment is off, but it shows up correct on screen.)
-
.–. (__)
-
|o_o | (oo)
-
|:_/ | /——\/
-
//___\ \ / | ||
-
(| | ) * /\—/\
-
/‘\_ _/`\ ~~ ~~
-
\___)=(___/ "Have you mooed today?"
-
.TODO.txt
-
1] Dishes, dishes, and more dishes
-
2] Make food for these crazy people I live with
-
3] Feed the fish
-
4] Feed the dogs
-
5] Clean House
-
6] Survive
- system
.conky_system
-
# system
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
#own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 300 840
-
maximum_width 300
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
#border_margin 2
-
border_inner_margin 2
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment top_left
-
gap_x 705
-
gap_y 70
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 4096
-
color1 FFFFFF
-
color2 000000
-
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${font Sans:bold:size=10}${color2}SYSTEM${hr 2}${font}
-
${color1}${font StyleBats:size=10}i${font} Kernel:${alignr}${kernel}
-
${font StyleBats:size=10}q${font} Uptime:${alignr}${uptime}
-
${font StyleBats:size=10}A${font} CPU1:${alignr}${cpu cpu1}%
-
${color2}${cpubar cpu1}${color1}
-
${font StyleBats:size=10}A${font} CPU2:${alignr}${cpu cpu2}%
-
${color2}${cpubar cpu2}${color1}
-
${font StyleBats:size=10}g${font} RAM:${alignc}${mem}/${memmax}${alignr}${memperc}%
-
${color2}${membar}
-
${color1}${font StyleBats:size=12}j${font} SWAP:${alignc}${swap}/${swapmax}${alignr}${swapperc}%
-
${color2}${swapbar}
-
${color1}${font Pie charts for maps:size=10}7${font} Root:${alignc}${fs_free /}/${fs_size /}${alignr}${fs_free_perc /}%
-
${color2}${fs_bar /}
-
${color1}${font Pie charts for maps:size=10}7${font} Home-1:${alignc}${fs_free /home}/${fs_size /home}${alignr}${fs_free_perc /home}%
-
${color2}${fs_bar /home}
-
${color1}${font Pie charts for maps:size=10}7${font} Home-2:${alignc}${fs_free /windows/Susan}/${fs_size /windows/Susan}${alignr}${fs_free_perc /windows/Susan}%
-
${color2}${fs_bar /windows/Susan}
-
${color1}${font Pie charts for maps:size=10}7${font} TV:${alignc}${if_mounted /windows/TV}${fs_free /windows/TV}/${fs_size /windows/TV}${alignr}${fs_free_perc /windows/TV}%
-
${color2}${fs_bar /windows/TV}${else}${alignc} Not Mounted${endif}
-
${color1}${font Pie charts for maps:size=10}7${font} Games:${alignc}${if_mounted /windows/Games}${fs_free /windows/Games}/${fs_size /windows/Games}${alignr}${fs_free_perc /windows/Games}%
-
${color2}${fs_bar /windows/Games}${else}${alignc} Not Mounted${endif}
-
${color1}${font Pie charts for maps:size=10}7${font} W7:${alignc}${if_mounted /windows/c_drive}${fs_free /windows/c_drive}/${fs_size /windows/c_drive}${alignr}${fs_free_perc /windows/c_drive}%
-
${color2}${fs_bar /windows/c_drive}${else}${alignc} Not Mounted${endif}
-
${color1}${font StyleBats:size=10}k${font} Processes:${alignr}${processes} (${running_processes} running)
-
Load:${alignr}${loadavg}
-
NAME${alignr} PID CPU MEM
-
${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
-
${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
-
${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
-
${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
-
${top name 5} ${alignr}${top pid 5} ${top cpu 5} ${top mem 5}
-
${font Sans:bold:size=10}${color2}NETWORK${hr 2}${font}
-
${if_existing /proc/net/route eth0}${color1}${font PizzaDude Bullets:size=10}b${font} Local IP:${alignr}${addr eth0}
-
${font PizzaDude Bullets:size=10}a${font} Public IP:${alignr}${execi 3600 $HOME/.conky/scripts/myip.sh}
-
${font PizzaDude Bullets:size=10}T${font} Total Download:${alignr}${totaldown eth0}
-
${font PizzaDude Bullets:size=10}N${font} Total Upload:${alignr}${totalup eth0}
-
${font PizzaDude Bullets:size=10}U${font} Down Speed:${alignr}${downspeed eth0}
-
${font PizzaDude Bullets:size=10}O${font} Up Speed:${alignr}${upspeed eth0}${else}${font PizzaDude Bullets:size=10}4${font} Network Unavailable ${endif}
-
${font Sans:bold:size=10}${color2}DATE${hr 2}${color1}
-
${alignc}${time %A, %B %d, %Y}
-
${color1}${font LCDMono:bold:size=10}${execpi 60 DJS=`date +%_d`; cal | sed ’1d’ | sed ‘/./!d’ | sed ‘s/$/ /’ | fold -w 21 | sed -n ‘/^.\{21\}/p’ | sed ‘s/^/${alignc} /’ | sed /" $DJS "/s/" $DJS "/" "‘${color2}’"$DJS"‘${color1}’" "/}
-
${color2}${stippled_hr}
myip.sh
-
#!/bin/sh
-
wget -q -O – checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’
(you don’t have to have this as a separate file, but I do just because I’m too lazy to change it and it still works so why fix what isn’t broken?
)

(IP Address do show up, they were just taken out for my privacy.)
- Weather
.conkyForecast.config
-
# config settings for conkyForecast.py
-
CACHE_FOLDERPATH = /tmp/
-
CONNECTION_TIMEOUT = 5
-
EXPIRY_MINUTES = 30
-
TIME_FORMAT = %H:%M
-
DATE_FORMAT = %Y-%m-%d
-
LOCALE = en_US
-
XOAP_PARTNER_ID = xxxxxxxxxx
-
XOAP_LICENCE_KEY = yyyyyyyyyyyyyyyy
.conky_weather
-
# weather
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 300 300
-
maximum_width 300
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
border_inner_margin
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment top_left
-
gap_x 1035
-
gap_y 255
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
-
-
-
color1 FFFFFF
-
color2 000000
-
-
-
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${font Sans:bold:size=10}${color2}WEATHER${hr 2}
-
${color1}${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WF}
-
${voffset -52}${font Weather:size=40}y ${offset -15}${font Sans:size=20}${execpi 1800 conkyForecast –location=USAR0124 –datatype=HT –imperial}
-
${font}${alignr}${offset 0}${voffset -15}${execpi 1800 conkyForecast –location=USAR0124 –datatype=CT}
-
Temperature:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=HT –imperial} (Feels Like ${execpi 1800 conkyForecast –location=USAR0124 –datatype=LT –imperial})
-
Humidity:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=HM}
-
Dew Point:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=DP –imperial}
-
Visibility:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=VI –imperial}
-
Wind:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WD –imperial} (${execpi 1800 conkyForecast –location=USAR0124 –datatype=WS –imperial})
-
UV-Index:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=UI} (${execpi 1800 conkyForecast –location=USAR0124 –datatype=UT})
-
Barometer:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=BR –imperial} (${execpi 1800 conkyForecast –location=USAR0124 –datatype=BD})
-
Daylight:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=SR}-${execpi 1800 conkyForecast –location=USAR0124 –datatype=SS}
-
Moon Phase:${alignr}${execpi 1800 conkyForecast –location=USAR0124 –datatype=MP}
-
${font Sans:bold:size=10}${color2}EXTENDED FORECAST${hr 2}${font}
-
${color1}${voffset 0}${execpi 1800 conkyForecast –location=USAR0124 –datatype=DW –startday=1 –shortweekday}${goto 70}${execpi 1800 conkyForecast –location=USAR0124 –datatype=DW –startday=2 –shortweekday}${goto 140}${execpi 1800 conkyForecast –location=USAR0124 –datatype=DW –startday=3 –shortweekday}${goto 210}${execpi 1800 conkyForecast –location=USAR0124 –datatype=DW –startday=4 –shortweekday}
-
${voffset 0}${font ConkyWeather:size=20}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WF –startday=1}${goto 70}${font ConkyWeather:size=20}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WF –startday=2}${goto 140}${font ConkyWeather:size=20}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WF –startday=1}${goto 210}${font ConkyWeather:size=20}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WF –startday=4}${font}
-
${voffset 0}${execpi 1800 conkyForecast –location=USAR0124 –datatype=HT –startday=1 –imperial –hideunits}/${execpi 1800 conkyForecast –location=USAR0124 –datatype=LT –startday=1 –imperial –hideunits}${goto 70}${execpi 1800 conkyForecast –location=USAR0124 –datatype=HT –startday=2 –imperial –hideunits}/${execpi 1800 conkyForecast –location=USAR0124 –datatype=LT –startday=2 –imperial –hideunits}${goto 140}${execpi 1800 conkyForecast –location=USAR0124 –datatype=HT –startday=3 –imperial –hideunits}/${execpi 1800 conkyForecast –location=USAR0124 –datatype=LT –startday=3 –imperial –hideunits}${goto 210}${execpi 1800 conkyForecast –location=USAR0124 –datatype=HT –startday=4 –imperial –hideunits}/${execpi 1800 conkyForecast –location=USAR0124 –datatype=LT –startday=4 –imperial –hideunits}
-
${voffset 0}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WD –startday=1 –imperial}${goto 70}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WD –startday=2 –imperial}${goto 140}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WD –startday=3 –imperial}${goto 210}${execpi 1800 conkyForecast –location=USAR0124 –datatype=WD –startday=4 –imperial}
-
${color2}${stippled_hr}
- barcode
.conky_barcode
-
# *.txt files and such
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
#own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 300 35
-
maximum_width 300
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
border_margin 2
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment bottom_left
-
gap_x 705
-
gap_y 25
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
color1 FFFFFF
-
-
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${color1}${font Free 3 of 9 Extended:size=30}*|scan it if you really want to know|*
The font used is free to download and use from dafont.com.

- the script that calls it all together
ssc.sh
-
#!/bin/sh
-
# click to start, click to stop
-
-
if pidof conky | grep [0-9] > /dev/null
-
then
-
exec killall conky
-
else
-
-
sleep 20 # sleep not required for xfce on startup – 30 or more for others
-
conky -c ~/.conky/.conky_txt &
-
conky -c ~/.conky/.conky_weather &
-
conky -c ~/.conky/.conky_system &
-
conky -c ~/.conky/.conky_barcode &
-
-
-
exit
-
fi
I followed the steps of installing conky weather on Fedora from this blog post.
I’ve also taken bits and pieces of my config from the #!crunchbang forums, the ubuntu forums, and conky Hardcore!.
| Print article | This entry was posted by LinuxGurl on 02/12/2010 at 9:29 AM, and is filed under How-To(s). Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |



















about 1 month ago
Why no one likes to Lua?…
about 1 month ago
I have used Lua just for a translucent background so I can read the text on a “busy” wallpaper. When I wrote this post I could not get Lua to work in Fedora. Since some updates a few months ago, Lua has begun to work again for me.
I’m not good at Lua scripting, but I do admire people who can.