Acer Aspire 4730Z Laptop-******* 7/LinuxMint 11 Katya Dual Boot
AMD Phenom II 545/*******7/Pulling HTPC Duty
After browsing through the web to find ideas on how to configure my conky, I keep finding links to this thread. Here are all the files I use with my conky set up:
.conkyrc
.conkyForecast.templateCode:# Conky configuration background yes use_xft yes xftfont Sans:size=8 xftalpha 0.8 update_interval 5.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 200 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 middle_right gap_x 12 gap_y 0 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 1024 color1 333333 color2 000000 color3 FFFFFF color4 AAAAAA color5 FFA500 # stuff after 'TEXT' will be formatted on screen TEXT ${font Domestic Manners:style=Bold:size=30}${color5}SuzyQ's PC ${voffset -50}${color3}$stippled_hr ${voffset -45}${font Sans:style=Bold:size=8}CURRENT CONDITIONS${hr 2} ${execpi 300 conkyForecast --location=*** --template=$HOME/.conkyForecast.template} ${font Sans:style=Bold:size=8}SYSTEM${hr 2} ${font}Hostname: $alignr$nodename Kernel: $alignr$kernel Uptime: $alignr$uptime Processes: ${alignr}$processes ($running_processes running) Load: ${alignr}$loadavg ${font Sans:style=Bold:size=8}FILESYSTEM AND MEMORY${hr 2} ${font}Root: ${fs_free /} / ${fs_size /} ${fs_bar 4 /} Home: ${fs_free /home} / ${fs_size /home} ${fs_bar 4 /home} ${font Sans:style=Bold:size=8}CPU1: ${font}${cpubar cpu1 10,150} ${cpu cpu1}% ${font Sans:style=Bold:size=8}CPU2: ${font}${cpubar cpu2 10,150} ${cpu cpu2}% ${font Sans:style=Bold:size=8}RAM: ${font}${mem} / ${memmax} (${memperc}%) ${membar 4} ${font Sans:style=Bold:size=9}SWAP: ${font}${swap} / ${swapmax} (${swapperc}%) ${swapbar 4} ${font Sans:style=Bold:size=8}PROCESSES${hr 2} ${font Sans:style=Bold:size=8}NAME $alignr PID CPU MEM ${voffset -5}${hr 1} ${font}${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:style=Bold:size=8}NETWORK${hr 2} ${font Sans:style=Bold:size=8}IP Address: ${font}${gw_ip} ${font Sans:style=Bold:size=8}Total Download: ${font}${totaldown eth0} ${font Sans:style=Bold:size=8}Total Upload: ${font}${totalup eth0} ${font Sans:style=Bold:size=8}Up Speed: ${font}${upspeed eth0} Kb/s ${font Sans:style=Bold:size=9}Down Speed: ${font}${downspeed eth0} Kb/s ${font Sans:style=Bold:size=8}TO DO LIST${hr 2} ${font}${execi 30 cat /home/susan/.TODO.txt}
.conkyForecast.configCode:${voffset 0}${font ConkyWeather:size=20}[--datatype=WF] ${font Sans:size=10}${voffset -5}[--datatype=CT] -- [--datatype=CN], [--datatype=CO] ${font}Temperature:$alignr [--datatype=HT --imperial] (Feels Like [--datatype=LT --imperial]) Humidity:$alignr [--datatype=HM] Visibility:$alignr [--datatype=VI --imperial] Wind:$alignr [--datatype=WD --imperial] ([--datatype=WS --imperial]) UV-Index:$alignr [--datatype=UI] ([--datatype=UT]) Sunrise:$alignr [--datatype=SR] Sunset:$alignr [--datatype=SS] Barometer Tendency:$alignr [--datatype=BD]
.conky_start.sh (to get it running with compiz enabled on startup)Code:# 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 XOAP_PARTNER_ID = *** XOAP_LICENCE_KEY = ***
Screenshot (click on thumbnail to see full-view):Code:#!/bin/bash sleep 20 && conky;
Hi people, this is my conkyrc. maybe to have a good alignment you have to add some code. Here it is:
I hope you like it. It goes good with carbongold gtk2.Code:background yes use_xft yes xftfont 123:size=8 xftalpha 0.1 update_interval 0.5 total_run_times 0 own_window yes own_window_type override own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 300 5 maximum_width 200 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color gray default_shade_color red default_outline_color green alignment top_right gap_x 7 gap_y 10 no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 1 override_utf8_locale yes use_spacer right text_buffer_size 1024 TEXT ${voffset 10}${font OpenLogos:size=25}${color #336883}${voffset -20}${alignr}t${font Purisa Medium:size=20}${color #336883}GNU${color #E6DF7E}LINUX${font openlogos:size=20}${color #336883}T ${voffset -90} ${color #E6DF7E} ${font} ${font Arial:bold:size=10}${color #336883}SYSTEM ${color DarkSlateGray} ${hr 2} ${color #E6DF7E}${voffset 2}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel} ${color #E6DF7E}${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60} ${color #E6DF7E}${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60} ${color #E6DF7E}${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60} ${color #E6DF7E}${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60} ${color #E6DF7E}${font Webdings:size=16}~${font} Batery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0} ${color #E6DF7E}${font StyleBats:size=16}q${font} Uptime: ${alignr}${uptime} ${font Arial:bold:size=10}${color #336883}HDD ${color DarkSlateGray}${hr 2} ${color #E6DF7E}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}% ${fs_bar /home} /disk $alignc ${fs_used /media/TREKSTOR} / ${fs_size /media/TREKSTOR} $alignr ${fs_free_perc /media/TREKSTOR}% ${fs_bar /media/TREKSTOR} ${font Arial:bold:size=10}${color #336883}TEMPERATURE ${color DarkSlateGray}${hr 2} $font${color #E6DF7E}Graphic card: ${alignr}${exec nvidia-settings -q gpucoretemp | grep '):' | awk '{print $4}' | cut -c -2}${color #E6DF7E}°C $font${color #E6DF7E}Hard disk:$alignr${execi 300 nc localhost 7634 | cut -c62-63;}${color #E6DF7E}°C ${font Arial:bold:size=10}${color #336883}PROCESES ${color DarkSlateGray}${hr 2} ${color #E6DF7E}$font${top_mem name 2}${alignr}${top mem 2} % ${top_mem name 3}${alignr}${top mem 3} % ${top_mem name 4}${alignr}${top mem 4} % ${top_mem name 5}${alignr}${top mem 5} % ${font Arial:bold:size=10}${color #336883}NETWORK ${color DarkSlateGray}${hr 2} $font${color #E6DF7E}Upload ${alignr}${totalup wlan0} $font${color #E6DF7E}Download ${alignr}${totaldown wlan0} ${font Arial:bold:size=10}${color #336883}WEATHER ${color DarkSlateGray}${hr 2} ${color #E6DF7E} ${offset 5}${font ConkyWeather:style=Bold:size=36}${execi 900 conkyForecast --location=???? --datatype=WF}${offset 16}${font ConkyWindNESW:size=36}${voffset 3} ${execi 900 conkyForecast --location=???? --datatype=BS}${font} ${voffset -80}${font xftfont DejaVu Sans Mono:size=8} $alignr${color #E6DF7E}Humidity: ${color #E6DF7E}${execi 900 conkyForecast --location=???? --datatype=HM} $alignr${color #E6DF7E}Barometer: ${color #E6DF7E}${execi 900 conkyForecast --location=???? --datatype=BR} $alignr${color #E6DF7E}Wind: ${color #E6DF7E}${execi 900 conkyForecast --location=???? --datatype=WS} ${execi 900 conkyForecast --location=???? --datatype=WD} $alignr${color #E6DF7E}Visibility: ${color #E6DF7E}${execi 900 conkyForecast --location=???? --datatype=VI --imperial} $alignr${color #E6DF7E}Daylight: ${color #E6DF7E}${execi 900 conkyForecast --location=???? --datatype=SR}/${execi 900 conkyForecast --location=???? --datatype=SS}${font} ${font DejaVu Sans Mono:size=10} ${execpi 900 conkyForecast --location=???? --datatype=DW --startday=1 --shortweekday} ${execpi 900 conkyForecast --location=???? --datatype=DW --startday=2 --shortweekday} ${execpi 900 conkyForecast --location=???? --datatype=DW --startday=3 --shortweekday}${execpi 900 conkyForecast --ocation=???? --datatype=DW --startday=4 --shortweekday}${font} ${font ConkyWeather:style=Bold:size=36}${execi 900 conkyForecast --location=???? --datatype=WF --startday=1} ${execi 900 conkyForecast --location=???? --datatype=WF --startday=2} ${execi 900 conkyForecast --location=???? --datatype=WF --startday=3} ${execi 900 conkyForecast --location=???? --datatype=WF --startday=4} ${font} ${color #E6DF7E}${font DejaVu Sans Mono:size=8}${execi 900 conkyForecast --location=???? --datatype=HT --startday=1 --centeredwidth=4 --hidedegreesymbol}/${execi 900 conkyForecast --location=???? --datatype=LT --startday=1 --centeredwidth=4 --hidedegreesymbol} ${execi 900 conkyForecast --location=???? --datatype=HT --startday=2 --centeredwidth=4 --hidedegreesymbol}/${execi 900 conkyForecast --location=???? --datatype=LT --startday=2 --centeredwidth=4 --hidedegreesymbol} ${execi 900 conkyForecast --location=???? --datatype=HT --startday=3 --centeredwidth=4 --hidedegreesymbol}/${execi 900 conkyForecast --location=???? --datatype=LT --startday=3 --centeredwidth=4 --hidedegreesymbol} ${execi 900 conkyForecast --location=???? --datatype=HT --startday=4 --centeredwidth=4 --hidedegreesymbol}/${execi 900 conkyForecast --location=???? --datatype=LT --startday=4 --centeredwidth=4 --hidedegreesymbol} Prcpt ${execi 900 conkyForecast --location=???? --datatype=PC --startday=1} Prcpt ${execi 900 conkyForecast --location=???? --datatype=PC --startday=2} Prcpt ${execi 900 conkyForecast --location=???? --datatype=PC --startday=3} ${font Trebuchet MS:size=11}${execi 600 /usr/bin/conkyForecast --location=???? --datatype=MP} ${voffset -20}${alignr 42}${font MoonPhases:size=28}${execi 600 /usr/bin/conkyForecast --location=???? --datatype=MF}${font} ${font Arial:bold:size=10}${color #336883}DATE & TIME ${color DarkSlateGray}${hr 2} ${color #E6DF7E} ${font Arial:size=15}$alignc${time %H:%Mh} ${voffset -10}${font Arial:bold:size=10}$alignc${time %d %b. %Y} ${font :bold:size=8}$alignc${time %A} $endif
|| Kubuntu x86_64 (15.10 Dev.) || KDE 4.9.00 ||
|| Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
|| Logitech M570 Trackball || Logitech G15 Gaming Keyboard ||
Conky: ... no such configuration: 'normal'
OK a couple of things, Every "blank" line you created under TEXT creates a blank line in conky. See "Spacing" and ${goto}, ${offset} & ${voffset} to fix up some of your issues.
Next I see:
Where did you find this:Code:# Temperature temperature_unit TEXT ${voffset -45}${color1}${font OpenLogos:size=150}v$font$color ${hr 2} ${alignc 50}${font vibrocen:size=26}${time %I:%M %p}${font} ${alignc}${time %A %d %Y}
I don't see the "temperature_unit" at Conky VariablesCode:# Temperature temperature_unit
Next make some changes - for example:
That ${voffset -20} you'll have to play with until you get the HR line right where you want it under the Ubuntu logo. It will also bring the other lines up with it.Code:TEXT ${voffset -45}${color1}${font OpenLogos:size=150}v$font$color ${voffset -20}${hr 2} ${voffset 5}${alignc 50}${font vibrocen:size=26}${time %I:%M %p}${font} ${alignc}${time %A %d %Y}
The ${voffset 5} in the next line brings the output down 5 pixels from the line.
Check Synaptic and see if you have "lm-sensors" if you don't have it, get it and read: Using Sensors.
I addressed this above on how to move you line up. It is the font that creates the Ubuntu Logo that is using that space. Reclaim it by using the ${voffset} command.
Add the sleep command if needed and you can use that same script to "Autostart" your conky at boot-up.Code:#!/bin/sh # click to start, click to stop if pidof conky | grep [0-9] > /dev/null then exec killall conky else #sleep 30 # sleep not required for xfce on startup - 30 or more for others conky -c ~/Conky/conky_1 & conky -c ~/Conky/conky_2 & conky -c ~/Conky/conky_3 & exit fi
There you are.
Have a nice day.
Bruce
Last edited by Bruce M.; May 14th, 2009 at 08:15 PM.
Bookmarks