You are not logged in.

#1 2009-07-03 01:52:01

geo909
Member
Registered: 2008-09-07
Posts: 309

Conky and multiple columns

Hello all,

I was wondering if there is a way to configure conky to have multiple columns.
I mean, I know that you see exactly what you write conky's configuration file,
but maybe there is a way to set a new column on conkyrc?

I know I could start several conkys with different configuration files but there
are some issues with some of them disappearing occasionally and, anyway,
why running more if there is the option to do the same job with one?

So what I am looking is if there is a way to do something like below in my conkyrc file:

.
.
.

TEXT

$conky stuff
$conky stuff
$conky stuff
$conky stuff

COMMAND TO START NEW COLUMN (or a new box somewhere in the screen)

#everything below this point appears in a new column or a new box in the screen 

$conky stuff
$conky stuff
$conky stuff
$conky stuff

.
.
.

Any ideas if something like this is possible? I was googling around but couldn't find anything..

Thanks a lot in advance for your time..

Last edited by geo909 (2009-07-03 01:55:32)

Offline

#2 2009-07-03 02:04:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Conky and multiple columns

Your best bet would be to have two conky files, and place them where you wanted on the screen...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2009-07-03 02:09:59

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Conky and multiple columns

Conky would be greatly improved if it supported tables and columns with alignment attributes and other formatting options. At the moment, the only way to achieve this in a single conkyrc file is to use $alignr, $voffset and whitespace trickery (afaik).


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#4 2009-07-03 02:45:30

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: Conky and multiple columns

Oh well.. That's a pitty..
I think too that indeed conky would be much improved if
one could format the output from the conkyrc file..

Offline

#5 2009-07-03 09:57:01

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Conky and multiple columns

Well, for just about the same effect you could, at the end of every first column cell (to use spreadsheet terms) do a new line, do a voffset, and then do a hoffset. It'll be exactly the same code every line.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2009-07-03 14:33:08

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: Conky and multiple columns

ngoonee wrote:

Well, for just about the same effect you could, at the end of every first column cell (to use spreadsheet terms) do a new line, do a voffset, and then do a hoffset. It'll be exactly the same code every line.

Thanks! I will try that..

Offline

#7 2009-07-03 15:26:00

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Conky and multiple columns

Xyne wrote:

Conky would be greatly improved if it supported tables and columns with alignment attributes and other formatting options. At the moment, the only way to achieve this in a single conkyrc file is to use $alignr, $voffset and whitespace trickery (afaik).

There is some spacer command that can roughly achieve the same result, if I'm not mistaken. One can always use the offset variable, too.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2009-07-03 17:03:41

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: Conky and multiple columns

I found it was easier to use separate config files. With V offset, if something for some reason gets really big, it messes up everything else.


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

#9 2009-07-03 19:23:43

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: Conky and multiple columns

maybe i'm missing something, but i never had trouble making a table-looking conky, once i learned the ${goto} command.

TEXT
${goto 5}value.X1Y1 ${goto 15}value.X2Y1 ${goto 25}value.X3Y1
${goto 5}value.X1Y2 ${goto 15}value.X2Y2 ${goto 25}value.X3Y2

Last edited by brisbin33 (2009-07-04 17:10:26)

Offline

#10 2009-07-04 13:43:37

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: Conky and multiple columns

Thanks for the suggestions, I will go with that..

Offline

#11 2009-07-04 23:36:17

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Conky and multiple columns

Cool! Something new. Thanks brisbin33.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#12 2013-11-05 04:01:04

spencertipping
Member
Registered: 2013-11-05
Posts: 1

Re: Conky and multiple columns

Hey guys, I found this thread a few days ago and wrote a Perl script that might help. It lets you write absolute and relative positioning commands into your conkyrc, and generates a series of offset/goto/voffsets to line everything up. Here's what my current config looks like (the rcfile is in the linked git repo):

http://spencertipping.com/conky-desktop.png

Offline

#13 2013-11-05 06:10:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Conky and multiple columns

Welcome to Arch. Please have a look over our Forum Etiquette, notably the section on image sizes and necrobumping.

We also have a dedicated conky thread where this would be well received.


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB