You are not logged in.

#1 2011-05-21 11:07:59

theinfiniti
Member
From: Chennai, India
Registered: 2009-07-03
Posts: 15
Website

Conky and Dzen | problem with getting it working.

Hey guys . I got a new netbook yesterday (Asus 1018PB) and i wanted to dedicate it to Arch .

So i went ahead , installed Arch + DWM and i wanted to get those small icons in the status bar .

i've read that we need to use Dzen and pipe conky to it . But i keep seeing people posting configs called dzonky.

I dont understand what uses this Dzonky .  Could someone please redirect me to a place that explains this ?

Thanks in advance..

Last edited by theinfiniti (2011-05-25 11:09:55)


~
i r lub teh code.

Offline

#2 2011-05-21 11:20:51

nixfag
Member
From: Romania
Registered: 2011-03-03
Posts: 73

Re: Conky and Dzen | problem with getting it working.

Dzconky is just a script which starts conky and dzen2.You can call it however you want,here is my own:
#!/bin/sh
#file : ~/.bin/dzconky
dzen2font="-artwiz-lime-*-*-*-*-*-*-*-*-*-*-*-*"
dzen2bg="#121212"
dzen2fg="#E0E0E0"
conky | dzen2 -fn "$dzen2font" -bg "$dzen2bg" -fg "$dzen2fg" -x 0 -y 1000 -h 20 -ta l
You can not have xbm icons in the dwm statusbar using a vanilla dwm.
Using my script you will have the dzen2 statusbar at the bottom
But you will need artwiz fonts and a hacked dwm.c which adds a gap at the bottom,but I won't go further in that smile

Last edited by nixfag (2011-05-21 11:24:57)

Offline

#3 2011-05-22 04:11:48

theinfiniti
Member
From: Chennai, India
Registered: 2009-07-03
Posts: 15
Website

Re: Conky and Dzen | problem with getting it working.

nixfag wrote:

Dzconky is just a script which starts conky and dzen2.You can call it however you want,here is my own:

#!/bin/sh
#file : ~/.bin/dzconky
dzen2font="-artwiz-lime-*-*-*-*-*-*-*-*-*-*-*-*"
dzen2bg="#121212"
dzen2fg="#E0E0E0"
conky | dzen2 -fn "$dzen2font" -bg "$dzen2bg" -fg "$dzen2fg" -x 0 -y 1000 -h 20 -ta l

You can not have xbm icons in the dwm statusbar using a vanilla dwm.
Using my script you will have the dzen2 statusbar at the bottom
But you will need artwiz fonts and a hacked dwm.c which adds a gap at the bottom,but I won't go further in that smile

Hey .
I know that we need to edit the dwm.c in order to give that space at the bottom for the bottom bar . But i dont think you need a hacked DWM to actually use the images . All you need to do is launch conky and pipe it to dzen2 to do the remaining stuff .

The thing i'm confused about is WHERE does this dzonky script get caled ? can i see your .xinitrc ?

Thanks in advance smile


~
i r lub teh code.

Offline

#4 2011-05-22 05:52:35

nixfag
Member
From: Romania
Registered: 2011-03-03
Posts: 73

Re: Conky and Dzen | problem with getting it working.

Well,I have 3 scripts for dwm,~/.bin/dwm-start ; ~/.bin/dwm-status and ~/.xinitrc.
This is my dwm-start:

#!/bin/sh
while true;do
      "$HOME/.bin/dwm-status" & 
      sleep 1s ;
done &
dzconky &
trayer --widthtype request --edge bottom --align right --height 20 --transparent true &
pidgin &
parcellite & 
wicd-client &

while true ; do
      dwm
done

And this is my .xinitrc:

#!/bin/sh
export DE=xfce
xrdb ~/.Xdefaults &
wmname LG3D
xset +fp /usr/share/fonts/artwiz-fonts/
xset fp rehash
unclutter -idle 5 &
#fc-cache -vf & 
sh ~/.fehbg
mpd ~/.mpd/mpd.conf
urxvtd -q -f -o
/usr/bin/xscreensaver -no-splash &
# exec ck-launch-session openbox-session
# xsetroot -cursor_name left_ptr &
# exec ck-launch-session xmonad
# nitrogen --restore
# xrdb ~/.Xresources &
# xset +fp /usr/share/fonts/local &
# xset fp rehash &
# sudo dropboxd start &
exec ck-launch-session $HOME/.bin/dwm-start

Here is how it looks
http://ompldr.org/vOHF0MA
The bottom bar is dzconky.


-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by nixfag (2011-05-22 05:59:35)

Offline

#5 2011-05-22 09:24:09

theinfiniti
Member
From: Chennai, India
Registered: 2009-07-03
Posts: 15
Website

Re: Conky and Dzen | problem with getting it working.

Trying it out now .

Quick question, The dwm-start and the dzconky should be chmod 755'd ?


~
i r lub teh code.

Offline

#6 2011-05-22 12:53:41

nixfag
Member
From: Romania
Registered: 2011-03-03
Posts: 73

Re: Conky and Dzen | problem with getting it working.

Yeah,I just chmod a+x $HOME/.bin/*

Offline

#7 2011-05-22 13:16:41

theinfiniti
Member
From: Chennai, India
Registered: 2009-07-03
Posts: 15
Website

Re: Conky and Dzen | problem with getting it working.

Allright , heres what i have .

~/.xinitrc

sh ~/.fehbg &
exec ck-launch-session $HOME/.bin/dwm-start

~/.bin/dwm-start

#!/bin/sh
dzconky &
while true ; do
      dwm
done

~/.bin/dzconky | your code basically , hope you dont mind.

#!/bin/sh
#file : ~/.bin/dzconky
dzen2bg="#121212"
dzen2fg="#E0E0E0"
conky | dzen2 -bg "$dzen2bg" -fg "$dzen2fg" -x 0 -y 1000 -h 20 -ta r

~/.conkyrc

background no
out_to_console yes
out_to_x no
update_interval 1.0
total_run_times 0
use_spacer no
TEXT
^i(~/icons/arch.xbm) ${nodename} | ${battery_short} | ${time %a %b %d} | ${time %I%M %p}

When i sign in , it just for a split second gives me the error Login command failed and then it just goes back to the logon screen

Please help sad I've been struggling with this for a day now sad


~
i r lub teh code.

Offline

#8 2011-05-23 02:08:07

theinfiniti
Member
From: Chennai, India
Registered: 2009-07-03
Posts: 15
Website

Re: Conky and Dzen | problem with getting it working.

nixfag wrote:

Here is how it looks
http://ompldr.org/vOHF0MA
The bottom bar is dzconky.

Btw , what theme is that for Google Chrome ? Looks bloody darned awesome big_smile


~
i r lub teh code.

Offline

#9 2011-05-23 11:02:31

nixfag
Member
From: Romania
Registered: 2011-03-03
Posts: 73

Re: Conky and Dzen | problem with getting it working.

I've set it to use my GTK theme,ElegantGNOME or something like that and the icons are Faenza.

Offline

#10 2011-05-24 11:58:46

theinfiniti
Member
From: Chennai, India
Registered: 2009-07-03
Posts: 15
Website

Re: Conky and Dzen | problem with getting it working.

Awesome . BTW , can you help me with the Login command failed problem please sad


~
i r lub teh code.

Offline

Board footer

Powered by FluxBB