You are not logged in.

#1 2009-07-04 15:17:21

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

conky and dzen2 examples

Hi,

I want to try dzen2 piped by conky for my minimal system-information-status-bar.

Unfortantly I can find very little information in the internet about this.
I have

out_to_console yes

set in my .conkyrc, but if I type "conky" I see no output.

Do some people have some conky & dzen2 configs thery could share here?
I am also interested in what cool things one can do ...

Thanks!
Nathan

Offline

#2 2009-07-04 15:33:52

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: conky and dzen2 examples

One way to get info here is to search the forums with dzen2 and conky in the keyword search.  You'll need to wade through alot of info but that's the way I figured out what I use now.  I started with http://bbs.archlinux.org/viewtopic.php?id=41118  You'll find that you need to use conky-cli from AUR to pipe output to dzen2.  I use a script that I put in my tiling wm .musca_start file called dzconky which I store in my /home/brian/bin folder:

#! /bin/sh

FG='#aaaaaa'
BG='#1a1a1a'
FONT='-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*'
conky | dzen2 -e '' -ta c -fg $FG -bg $BG -fn $FONT -x 0 -y 1008

This gives me centred output in dzen2 (-ta c) and puts the dzen2 bar on the bottom of my 1280x1024 display rather than the default top position.

And my .conkyrc used with conky-cli:

background no
out_to_console yes
update_interval 1.0
total_run_times 0
use_spacer none

TEXT
Uptime:$uptime CPU:$freq Mhz ($cpu%) Ram:($memperc%) Disk:/:${fs_used /} /home:${fs_used /home/brian} CPU Temp:${execi 5 echo $(($(cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp1_input) / 1000))C} ${time %a,%b %d/%y %l:%M%P}

Use what you wish or do your own thing. smile

Edit: spelling

Last edited by bgc1954 (2009-07-04 15:40:09)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#3 2009-07-04 16:21:58

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Re: conky and dzen2 examples

Hi.

Ok, I did not realize that I HAVE TO use conky-cli. I thought it was only option. Now it works, thanks!

Nathan

Offline

#4 2009-07-04 21:57:50

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: conky and dzen2 examples

I see that people are still using conky-cli when in fact it is no longer needed.
The 1.7 version of conky should behave nicely with these options:

background no
out_to_console yes
out_to_x no

The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2009-07-05 15:38:09

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: conky and dzen2 examples

Thanks for the info moljac024. . . don't know where I've been. big_smile
I learn something new once in a while despite myself.  This will be much handier when I want to use conky with multiple wm and de's.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

Board footer

Powered by FluxBB