You are not logged in.
The saga continues.
Hello all,
Here is another challenge.
I've found this really nice weather script on the forum.
I like it a lot except the fonts. The legibility of the fonts is very bad. I want to change it to some simple readable font - no decoration, no shadows, no outlines, only plain simple fonts, possibly white and slightly larger.
Can anyone advise me how to go about doing this?
Thanks a lot.
Here is the screenshot:
http://i599.photobucket.com/albums/tt79 … scrot.jpeg
Here is the conkyrc file:
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky ## with BunsenLabs this is set properly in Compton
own_window_title conky ## can be anything: Weather conky
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft yes
# Update interval in seconds
update_interval 3
# Minimum size of text area
minimum_size 355 500
maximum_width 357
override_utf8_locale yes
# Draw shades?
draw_shades yes
# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 3
# border margins
border_margin 9
# border width
border_width 10
# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb
own_window_colour brown
own_window_transparent yes
# 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 100
gap_y 100
imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen
TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
${image $HOME/1b1_accuweather_images/cc.png -p 0,60 -s 180x108}
${font Arial:size=10}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/messages}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°C (${execpi 600 sed -n '30p' $HOME/1b1_accuweather_images/curr_cond}°C)
${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '32p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '35p' $HOME/1b1_accuweather_images/curr_cond}°C
${goto 200}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '37p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '36p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '34p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n '41p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n '42p' $HOME/1b1_accuweather_images/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}TODAY$color$font${goto 230}${font Arial:size=10}${color ffe595}TONIGHT$color$font${image $HOME/1b1_accuweather_images/tod.png -p 0,205 -s 120x72}${image $HOME/1b1_accuweather_images/ton.png -p 190,205 -s 120x72}
${goto 145}${execpi 600 sed -n '26p' $HOME/1b1_accuweather_images/first_days}°C${goto 340}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/first_days}°C
${goto 140}(${execpi 600 sed -n '27p' $HOME/1b1_accuweather_images/first_days}°C)${goto 335}(${execpi 600 sed -n '32p' $HOME/1b1_accuweather_images/first_days}°C)
${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/1b1_accuweather_images/messages}${goto 195}${execpi 600 sed -n '3p' $HOME/1b1_accuweather_images/messages}$font
Chance of Precip: ${execpi 600 sed -n '28p' $HOME/1b1_accuweather_images/first_days}${goto 195}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/first_days}
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/first_days}${goto 270}${execpi 600 sed -n '15p' $HOME/1b1_accuweather_images/first_days}$color${font}${image $HOME/1b1_accuweather_images/6.png -p 0,330 -s 90x54}
${font Arial:size=8}${goto 100}${execpi 600 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '13p' $HOME/1b1_accuweather_images/first_days}°C${goto 330}${execpi 600 sed -n '18p' $HOME/1b1_accuweather_images/first_days}°C
${goto 100}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '14p' $HOME/1b1_accuweather_images/first_days}°C${goto 330}${execpi 600 sed -n '19p' $HOME/1b1_accuweather_images/first_days}°C${image $HOME/1b1_accuweather_images/11.png -p 110,330 -s 90x54}${image $HOME/1b1_accuweather_images/16.png -p 230,330 -s 90x54}
${execpi 600 sed -n '4p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '6p' $HOME/1b1_accuweather_images/messages}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '20p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/last_days}${goto 270}${execpi 600 sed -n '6p' $HOME/1b1_accuweather_images/last_days}$color${font}${image $HOME/1b1_accuweather_images/21.png -p 0,420 -s 90x54}
${font Arial:size=8}${goto 100}${execpi 600 sed -n '23p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '4p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '24p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/last_days}°C${image $HOME/1b1_accuweather_images/last_2.png -p 110,420 -s 90x54}${image $HOME/1b1_accuweather_images/last_7.png -p 230,420 -s 90x54}
${execpi 600 sed -n '7p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '8p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/messages}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '11p' $HOME/1b1_accuweather_images/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/1b1_accuweather_images/last_days}${goto 270}${execpi 600 sed -n '21p' $HOME/1b1_accuweather_images/last_days}$color${font}${image $HOME/1b1_accuweather_images/last_12.png -p 0,510 -s 90x54}
${font Arial:size=8}${goto 100}${execpi 600 sed -n '14p' $HOME/1b1_accuweather_images/last_days}°C${goto 210}${execpi 600 sed -n '19p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '24p' $HOME/1b1_accuweather_images/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '15p' $HOME/1b1_accuweather_images/last_days}°C${goto 210}${execpi 600 sed -n '20p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '25p' $HOME/1b1_accuweather_images/last_days}°C${image $HOME/1b1_accuweather_images/last_17.png -p 110,510 -s 90x54}${image $HOME/1b1_accuweather_images/last_22.png -p 230,510 -s 90x54}
${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '11p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '12p' $HOME/1b1_accuweather_images/messages}
.conkyrc_1b1_usa:
Last edited by jmak (2016-04-28 03:50:12)
Offline
@jmak
If you have a different question, please open a new thread about it. Otherwise it causes confusion to people looking for an answer about changing the conky window size
BTW You are asking conky to draw text outlines. Try changing it to "no"
Last edited by damo (2016-04-27 19:53:47)
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
@jmak
If you have a different question, please open a new thread about it. Otherwise it causes confusion to people looking for an answer about changing the conky window size
BTW You are asking conky to draw text outlines. Try changing it to "no"
Thanks damo,
I overlooked those settings.
I modified the script by taking out all the decorations, and now, it looks good except the size of the font.
If I increase it in the setting, the visuals become a mess - the fonts overlap the images.
Any idea?
I didn't open a new thread because this was not a major problem to be fixed.
Do you still think I should open a new thread?
Offline
Do you still think I should open a new thread?
Did it for you
In your Conky you have positioning commands ie {goto}. Adjust these until the text is placed where you want it.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
jmak wrote:Do you still think I should open a new thread?
Did it for you
In your Conky you have positioning commands ie {goto}. Adjust these until the text is placed where you want it.
Thanks,
Lots of {goto} lines here; it will take some time to figure out the size of the line spaces.
Offline
Hi damo,
In the snippet what code represents vertical line spacing in text?
${font Arial:size=9}${goto 40}${color ffffff}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/first_days}${goto 270}${execpi 600 sed -n '15p'
I tried to change the '5p' to see what happens but it doesn't seem to affect vertical line spacing.
Because I have to decrease line spacing in case I want to increase the fonts, otherwise they overlap the images.
Offline
Menu -> Help -> Conky -> Conky Variables
Look for $voffset and $offset
The "line spacing" depends on the font size
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Menu -> Help -> Conky -> Conky Variables
Look for $voffset and $offset
The "line spacing" depends on the font size
Good to know that there is a way to fix this issue but I don't know how to use these variables.
Offline
...
Good to know that there is a way to fix this issue but I don't know how to use these variables.
The same way you use all the other ones! Put the ${variable} in the TEXT section where you want it to have an effect...
Move 10px from where the text would normally be with
${offset 10}
Move vertically 10px with
${voffset 10}
or
${voffset -10}
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
NO!!!! That "5p" is sed reading the 5th line in $HOME/1b1_accuweather_images/first_days for inclusion in the conky, which today is: THURSDAY
@jmak - grab the companion conky for 1b1)Accuweather - Images - 1b1_29-10-15
Companion to the script: 1b1_29-10-15_Companion
put it in ~/1b1_accuweather_images directory. It will open in a window and tell you what each element of the script is:
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
In the snippet what code represents vertical line spacing in text?
${font Arial:size=9}${goto 40}${color ffffff}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/first_days}${goto 270}${execpi 600 sed -n '15p'
I tried to change the '5p' to see what happens but it doesn't seem to affect vertical line spacing.
Because I have to decrease line spacing in case I want to increase the fonts, otherwise they overlap the images.
Not the 5p! ${goto 40}, ${goto 145} and ${goto 170} adjust the position of the day names in this line.
That represent (5p) Thursday, (10p) Friday and (15p) Saturday as explained earlier:
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Thanks to everyone for the tips and helpful suggestions!
I must report complete success.
Attached is a screenshot to see how the completed work looks like.
http://i599.photobucket.com/albums/tt79 … scrot.jpeg
Sector11! Thanks for the companion text.
Though, I used the 'voffset' parameter to finetune the vertical spacing of the text. This is a very good feature too, and easy to use.
While doing this, I also learned a lot about conky.
Offline
So [Solved] then?
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline