SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-10-07 14:05:00

chameleon
#! Die Hard
From: luxembourg (uk guy)
Registered: 2009-01-13
Posts: 587
Website

conky in dwm

I am trying to get conky into dwm status bar but it is not loading with DWM;

out_to_console yes
background no
update_interval 2
total_run_times 0
use_spacer none

TEXT
$mpd_smart :: ${cpu cpu1}% / ${cpu cpu2}%  ${loadavg 1} ${loadavg 2 3} :: ${acpitemp}c :: $memperc% ($mem) :: ${downspeed eth0}K/s ${upspeed eth0}K/s :: ${time %a %b %d %H:%M%P}

~/.xinitrc

xrdb -merge ~/.Xresources
nitrogen --restore &
conky | while read -r; do xsetroot -name "$REPLY"; done &
exec dwm

If I enter the command after dwm has started;

conky | while read -r; do xsetroot -name "$REPLY"; done

then this works and conky shows up just fine in the DWM status bar.
So for some reason it is not starting with ~/.xinitrc ??

Any ideas welcome.

Offline

Be excellent to each other!

#2 2012-10-07 14:08:57

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,747

Re: conky in dwm

Try this in .xinitrc

(conky | while read LINE; do xsetroot -name "$LINE"; done) &

And add this in .conkyrc

out_to_x no

Offline

#3 2012-10-07 14:38:01

chameleon
#! Die Hard
From: luxembourg (uk guy)
Registered: 2009-01-13
Posts: 587
Website

Re: conky in dwm

@el_koraco

You are my hero Sir!

I was basically following the Arch wiki - good or bad move?
https://wiki.archlinux.org/index.php/Dwm
Can you explain the difference in the command?

Also, I had in conky;

 
out_to_x no

but I noticed that when I was manually starting conky it was complaining about this command not being recognized...so I removed it.

Thanks again.

Offline

#4 2012-10-07 14:47:32

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,747

Re: conky in dwm

chameleon wrote:

Can you explain the difference in the command?

Nope, I just copied mine from gutterslob or someone big_smile

Offline

#5 2012-10-07 16:04:26

porkpiehat
#! Die Hard
Registered: 2012-10-02
Posts: 562

Re: conky in dwm

chameleon wrote:

Can you explain the difference in the command?

The conky web page is a good resource for questions like this.

out_to_x
When set to no, there will be no output in X (useful when you also use things like out_to_console). If you set it to no, make sure that it's placed before all other X-related setting (take the first line of your configfile to be sure). Default value is yes.

Last edited by porkpiehat (2012-10-07 16:05:01)

Offline

#6 2012-10-07 16:30:32

chameleon
#! Die Hard
From: luxembourg (uk guy)
Registered: 2009-01-13
Posts: 587
Website

Re: conky in dwm

@porkpiehat
Thanks for your input but I meant the difference between;

conky | while read -r; do xsetroot -name "$REPLY"; done &

and

(conky | while read LINE; do xsetroot -name "$LINE"; done) &

Like I said I had 'out_to_x' set to 'no' but my conky was complaining about this command.

Offline

#7 2012-10-09 23:30:06

super.luser
Member
From: Luserville
Registered: 2012-09-29
Posts: 36

Re: conky in dwm

Honestly, I'm not sure what the difference is, but I never got the method used in the Arch Wiki to work for me, personally. I use something slightly different from what's been shown, but in effect, it's the same trick, so I guess I'm kinda doing the same thing differently. wink

For what it's worth, I've never had any problems doing it the way el_koraco mentioned.


I luse superbly, with style and aplomb.

Offline

#8 2012-11-02 14:26:54

m5
#! CrunchBanger
From: 200 years ago.
Registered: 2011-12-08
Posts: 221

Re: conky in dwm

@chameloen,
Maybe the problem lied in read -r in the while line,
if you are still curious,try changing:

conky | while read -r; do xsetroot -name "$REPLY"; done &

to :

conky | while read REPLY; do xsetroot -name "$REPLY"; done &

to see if this one works or not,if it works then problem was While read -r line.   smile

Edit : I don`t think this is problem either,it seems both should work too. sorry.  tongue

Last edited by m5 (2012-11-02 14:33:39)


Keep digging.
Linux beginner.

Offline

#9 2012-11-02 14:33:11

chameleon
#! Die Hard
From: luxembourg (uk guy)
Registered: 2009-01-13
Posts: 587
Website

Re: conky in dwm

@m5
Thanks for the info...I will bookmark this for future DWM/Conky tests.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo