Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
conky - how do I keep information spaced?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
chrisduck
Apprentice
Apprentice


Joined: 30 Jun 2004
Posts: 283
Location: California

PostPosted: Wed Oct 04, 2006 1:36 pm    Post subject: conky - how do I keep information spaced? Reply with quote

How do I keep information being output by conky properly spaced/indented

for example, some of the output looks like this...

firefox-bin 1123 2344 3929
moc 2314 2334 4556
urxvt 4322 3456 2345

I want it to look like this (organized in nice columns)...

firefox-bin.......1123....2334....3929
moc................2314....2334....4556
urxvt...............4322....3456....2345
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Wed Oct 04, 2006 2:34 pm    Post subject: Reply with quote

Use a monospace font.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
0x001A4
Apprentice
Apprentice


Joined: 08 Jan 2006
Posts: 263
Location: Mississauga, Ontario

PostPosted: Wed Oct 04, 2006 2:48 pm    Post subject: Reply with quote

There are alignc and alignr variables you can use. Here is an example from my conkyrc
Code:
${color #ffffff}NAME ${alignr}PID        CPU%
${color #ffffff}${top name 1} ${alignr}${top pid 1}     ${top cpu 1}
${color #ffffff}${top name 2} ${alignr}${top pid 2}     ${top cpu 2}
${color #ffffff}${top name 3} ${alignr}${top pid 3}     ${top cpu 3}
${color #ffffff}${top name 4} ${alignr}${top pid 4}     ${top cpu 4}
${color #ffffff}${top name 5} ${alignr}${top pid 5}     ${top cpu 5}

Thats from the CPU section and this is what it looks like:
http://i17.photobucket.com/albums/b78/smoked_out_haze/conky.jpg
Back to top
View user's profile Send private message
chrisduck
Apprentice
Apprentice


Joined: 30 Jun 2004
Posts: 283
Location: California

PostPosted: Wed Oct 04, 2006 11:54 pm    Post subject: Reply with quote

yngwin,
Thanks, but I'm using monospace already.

0x001A4,
THANKS! That did the trick!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum