You are not logged in.
Pages: 1
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 dwmIf I enter the command after dwm has started;
conky | while read -r; do xsetroot -name "$REPLY"; donethen 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
Try this in .xinitrc
(conky | while read LINE; do xsetroot -name "$LINE"; done) &And add this in .conkyrc
out_to_x noOffline
@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 nobut 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
Can you explain the difference in the command?
Nope, I just copied mine from gutterslob or someone 
Offline
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
@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
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. 
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
@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. 
Edit : I don`t think this is problem either,it seems both should work too. sorry. 
Last edited by m5 (2012-11-02 14:33:39)
Keep digging.
Linux beginner.
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.