Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am working on creating an entire Theme based off of Coldplay's Mylo Xyloto album. This is my first time working with Conky and theme creation. I started off by creating the Conky setup:

enter image description here

I would like to how to centre the text in Conky. First to have it placed in the centre of my desktop, and second to have the text centre (think the Centre align button in word). It is supposed to be aligned like the album art:

enter image description here

Conky Script

http://paste.ubuntu.com/1230966/


End Result using Answer bellow: enter image description here

share|improve this question
    
Welcome to AskUbuntu! Can i get your conky script? –  penreturn Sep 27 '12 at 18:37
    
I will add it to the post. –  Dominic Jordan Hasford Sep 27 '12 at 18:43
    
paste it on paste.ubuntu.com and give me the link –  penreturn Sep 27 '12 at 18:44
    
Wow that's a cool site: paste.ubuntu.com/1230966 –  Dominic Jordan Hasford Sep 27 '12 at 18:56
    
Nice! If you have a question about conky, just ping my nick at chat room. Thanks! –  penreturn Oct 12 '12 at 19:10
add comment

1 Answer

up vote 2 down vote accepted

To put your conky on top center, find alignment tl line 37 in you conky script and put this

alignment top_middle 

gap_x 0
gap_y 0

Allignment code

top_left

top_middle

top_right

To center your text put

${alignc} on :

${alignc}${font ETIAW v3:size=75}${time %A}${font}
${alignc}${font ETIAW v3:size=75}${time %B} ${time %e}${font}
${alignc}${font ETIAW v3:size=75}${time %I:%M %p}${font}

Conky script basic

My output as im not using your font :

enter image description here

share|improve this answer
    
Beautifu :) Where does the Allignment code go? top_left top_middle top_right –  Dominic Jordan Hasford Sep 27 '12 at 19:19
    
top_middle if you want it to be center of your desktop :) –  penreturn Sep 27 '12 at 19:21
    
Ah I see :) It is in the middle now, but it is all the way at the top. I would want it right in the centre of the desktop. Any suggestions? –  Dominic Jordan Hasford Sep 27 '12 at 19:23
    
use middle_middle ;) –  penreturn Sep 27 '12 at 19:26
    
I seemed to heave figured it out :D I tweaked the gap_y to 250, it is not exactly where I needed it to be. Thank you so much! –  Dominic Jordan Hasford Sep 27 '12 at 19:26
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.