Help - Search - Members - Calendar
Full Version: Conky And .ttf
Darkside_RG > Technical Discussions > Technical Help and Discussions > Linux Help
pengy_666
Ok so I am editing my conkyrc,

Going well. I want to install some ttf fonts into it but I dont know how to select one font for the conkyrc file?
Loki154
You're going to need a place for your fonts in your home folder. So navigate to your home folder and add the directory .fonts. In this folder you place all of your ttf fonts. I like Pizzadude fonts myself. Now when you go to use the fonts, conky will know the fonts are in the .fonts folder. Here are some examples on how to use these fonts, now that they are available:

${font Radio Space:size=14}${time %A %d %Y}

${font Radio Space:size=40}${time %H:%M}

${font PizzaDude Bullets:size=16}v${font} Up: ${upspeed eth1} Kb/s

${font PizzaDude Bullets:size=16}r${font} Down: ${downspeed eth1} Kb/s

${font PizzaDude Bullets:size=16}M${font} Upload: ${totalup eth1}

${font PizzaDude Bullets:size=16}S${font} Download: ${totaldown eth1}

Hope this helps

This page show's some pretty cool things, especially parser for conky to check your gmail account.
pengy_666
I figured it out.

I installed the conky weather and its sorted now. The Ubuntu Image I sorted I found the website I got them from had them listed in an order including the details for each font so I could select them.

The one problem I have though is my desktop icons are invisible whilst conky is running, If you move mouse over them they will appear but dissappear as soon as you move away from them.

:D
Loki154
Try adding this to the beginning of your conky file:

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
pengy_666
Excellent work Loki!

Thanks a lot.
Loki154
No problem.
pengy_666
Loki, Its cut my weather info off the bottom.

Where is it going wrong?

CODE
# maintain spacing between certain elements
use_spacer none

own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# set to yes if you want tormo to be forked in the background
background no

use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono-8
#xftfont Andale Mono-9
#xftfont Clean-8
#xftfont cubicfive10:pixelsize=8
#xftfont squaredance10:pixelsize=14
xftfont swf!t_v02:pixelsize=10

# Text alpha when using Xft
xftalpha 1
mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no # amplifies text

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 9

# border width
border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey90
default_shade_color black
default_outline_color DarkGrey

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 68
gap_y 24

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# stuff after 'TEXT' will be formatted on screen

TEXT



${color #98c2c7}${font openlogos:size=40}u${font}${voffset -30}${alignr}$color$nodename$color  ${color #98c2c7}


Power ${hr 1}
Battery:$color${battery_percent BAT0}% (${battery_time BAT0}) ${color #98c2c7}
Usage (Avg):$color${freq_g cpu0}Ghz ${cpu cpu0}%
${cpubar cpu0 5,180}${color #98c2c7}
Usage (Core 1):$color${freq_g cpu1}Ghz ${cpu cpu1}%
${cpubar cpu1 5,180} ${color #98c2c7}
Usage (Core 2):$color${freq_g cpu2}Ghz ${cpu cpu2}%
${cpubar cpu2 5,180} ${color #98c2c7}

HDD ${hr 1}
/home $color$alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home} ${color #98c2c7}
FS Avail:$color${fs_free_perc /}% $fs_free / $fs_size ${color #98c2c7}

Network ${hr 1}
Wlan0 IP:$color${addr wlan0} ${color #98c2c7}
DL Total:$color  ${totaldown wlan0}${color #98c2c7}
UL Total:$color  ${totalup wlan0}${color #98c2c7}
UL:$color${upspeed wlan0}kb/s${color #98c2c7}
DL:$color${downspeed wlan0}kb/s${color #98c2c7}
Wi-Fi Signal:$color ${wireless_link_qual_perc wlan0}%
${wireless_link_bar 5,180 wlan0} ${color #98c2c7}

Processess ${hr 2}
$color${top_mem name 2}${alignr}${top mem 2} %
$color${top_mem name 3}${alignr}${top mem 3} %
$color${top_mem name 4}${alignr}${top mem 4} %
$color${top_mem name 5}${alignr}${top mem 5} %
${color #98c2c7}

Stats ${hr 1}
Uptime:$color${uptime} ${color #98c2c7}
Temp:$color${acpitemp}°C  ${color #98c2c7}CPU:$color$cpu% ${color #98c2c7}
RAM:$color$memperc%  ${color #98c2c7}Swap:$color$swapperc% ${color #98c2c7}

Weather ${hr 1}




$color${font conkyWeather:size=40}${execi 3600 conkyForecast --location=UKXX0103 --datatype=WF}${font}${color #98c2c7}
$color${alignc 10}${voffset -60}${execi 3600 conkyForecast --location=UKXX0103 --datatype=HT}${color #98c2c7}
${voffset -55}${alignr} Wind:${execi 3600 conkyForecast --location=UKXX0103 --datatype=WS}${color #98c2c7}
Loki154
Weather ${hr 1}




$color${font conkyWeather:size=40}${execi 3600 conkyForecast --location=UKXX0103 --datatype=WF}${font}${color #98c2c7}

take out two of those breaks between these two lines and see if it helps.
pengy_666
QUOTE (Loki154 @ Jan 31 2010, 09:56 PM) *
Weather ${hr 1}




$color${font conkyWeather:size=40}${execi 3600 conkyForecast --location=UKXX0103 --datatype=WF}${font}${color #98c2c7}

take out two of those breaks between these two lines and see if it helps.



That makes it overlap the break/title part (the top line) as the icon of the forecast is offset to display.
Loki154
what resolution is the screen?

I think your voffset is doing this. Maybe changing these around will solve the problem
pengy_666
QUOTE (Loki154 @ Jan 31 2010, 10:06 PM) *
what resolution is the screen?

I think your voffset is doing this. Maybe changing these around will solve the problem


Its 1440x900, Its only happened since I inserted that text to stop it affecting icons, I think its the transparent window rules, when I restart it, you can briefly see it in black and it is ended just under the last line of text displayed.
Loki154
It is possible that could be it.
pengy_666
Is there anyway to edit the size?
Loki154
Maybe something like this:

use_spacer none
maximum_width 250
minimum_size 100 788
short_units yes
pengy_666
Cheers Loki, I tried that but it was no good, I played around with variables but it was no good.

I fixed it though. I simply added blank lines after end of code. Sorted
Loki154
Awesome. That was going to be my next suggestion. Nice learning experience though.
pengy_666
Definitely, Now I have problems with the icons. Its adding around 4 of them and they are junk?

Never mind its late now.
Loki154
When you get time, what kind of fonts are you using?
pengy_666
I scrapped that conky, Going for a neater look.

I am having soome odd behaviour though.

The bars move as the data updates?

Here is my conkyrc. its still a work in progress.

CODE
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override
double_buffer yes
text_buffer_size 1024
use_spacer left
use_xft yes
border_inner_margin 9
border_width 1
update_interval 1.0
total_run_times 0
draw_shades no
draw_graph_borders yes
xftfont swf!t_v02:pixelsize=10
xftalpha .8
draw_outline no
draw_borders no
uppercase no
default_color 47809d
alignment tr
minimum_size 180 5
gap_x -1
gap_y 50

Text
$color$nodename ${alignr 60}$uptime

$color${font stylebats:size=25}a$font${voffset -9}CPU 0: ${freq_g cpu0}Ghz                 $color${alignr 45}${voffset -5}${cpubar cpu0 15,180}${alignr 67}${voffset -9}${cpu cpu0}%  

$color${font stylebats:size=25}a$font${voffset -9}Core1: ${freq_g cpu1}Ghz                 $color${alignr 45}${voffset -5}${cpubar cpu1 15,180}${alignr 67}${voffset -9}${cpu cpu1}%  

$color${font stylebats:size=25}a$font${voffset -9}Core2: ${freq_g cpu2}Ghz                 $color${alignr 45}${voffset -5}${cpubar cpu2 15,180}${alignr 67}${voffset -9}${cpu cpu2}%

$color${font stylebats:size=25}m$font${voffset -9} Mem:  ${memfree}                        $color${alignr 45}${voffset -5}${membar 15,180}${alignr 67}${voffset -9}${memperc}%



Click to view attachment
Loki154
Are you stating it moves once or keeps moving as the cpu is taxed more?
pengy_666
QUOTE (Loki154 @ Feb 2 2010, 12:52 AM) *
Are you stating it moves once or keeps moving as the cpu is taxed more?


They al move as the values change inside the bars
Loki154
Make your Conky display wider by manipulating the:

use_spacer none
maximum_width 250
minimum_size 100 788
short_units yes

Manipulate this number to make Conky wider.
pengy_666
Sorry I didnt get back. It was very late when I was posting last night.

Anyway I played around with those figures but it didnt seem to fix it. I changed the layout of it now.

CODE
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override
double_buffer yes
text_buffer_size 1024
use_spacer none
short_units yes
use_xft yes
border_inner_margin 9
border_width 1
update_interval 1.0
total_run_times 0
draw_shades no
draw_graph_borders yes
xftfont swf!t_v02:pixelsize=10
xftalpha .8
draw_outline no
draw_borders no
uppercase no
default_color 47809d
alignment tr
#maximum_width 550
minimum_size 100 400
gap_x 50
gap_y 50

Text
${alignr 60}$color$nodename ${color #575757}$uptime


$color${alignc 20}${font stylebats:size=65}a$font ${color #575757}
${voffset -45}${alignr 50}${cpu cpu0}%



$color${alignc 20}${font stylebats:size=65}m$font ${color #575757}
${voffset -45}${alignr 50}${memperc}%



$color${alignc 20}${font stylebats:size=65}j$font ${color #575757}
${voffset -45}${alignr 49}${fs_free_perc /home}%



$color${alignc 20}${font stylebats:size=65}q$font ${color #575757}
${voffset -45}${alignr 54}${wireless_link_qual_perc wlan0}



$color${alignc 20}${font stylebats:size=65}c$font ${color #575757}
${voffset -45}${alignr 50}${battery_percent BAT0}%


Click to view attachment



The first is CPU average load
The second is Mem average load
The third is free space on /HDA 1
The fourth is wireless connection quality
The fifth is Battery charge average.


What you think? It does still shift the images but I think its to do with the figures changing?
Loki154
It probably is just because the figures are changing. It looks pretty good. Definitely original. But the question is, do you like it?
pengy_666
think conky is too limited to do much more without over complicating things.

Yeah I like it. I will mod it some more though :)
dEVIANT
Nice little conky theme here.
Loki154
Nice find Dev good.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.