You are not logged in.

#1 2011-01-10 08:11:48

UQ-igor
Member
Registered: 2009-03-05
Posts: 42

[SOLVED] WMFS status bar and conky

Hi,

I've setup WMFS the way I need it, but I can't figure out how to pipe conky-cli output to the status bar correctly. I've created a status.sh script with the following:

#!/bin/bash
conky | while read -r; do wmfs -s -name "$REPLY"; done

which gets called from the wmfsrc, and this works to some extent, but it spawns a million conky instances over time.

So, any ideas how to do this right?

Thanks in advance,
-igor

Last edited by UQ-igor (2011-01-11 10:34:42)

Offline

#2 2011-01-10 15:22:33

kcirick
Member
Registered: 2010-06-21
Posts: 364

Re: [SOLVED] WMFS status bar and conky

Shouldn't that be called from .xinitrc, as opposed to from wmfsrc?

Offline

#3 2011-01-11 07:11:22

aleks223
Member
Registered: 2010-03-27
Posts: 178
Website

Re: [SOLVED] WMFS status bar and conky

UQ-igor wrote:

Hi,

I've setup WMFS the way I need it, but I can't figure out how to pipe conky-cli output to the status bar correctly. I've created a status.sh script with the following:

#!/bin/bash
conky | while read -r; do wmfs -s -name "$REPLY"; done

which gets called from the wmfsrc, and this works to some extent, but it spawns a million conky instances over time.

So, any ideas how to do this right?

Thanks in advance,
-igor

Well, i really think you should wait for an upgrade. The one from the last week wasn't really good. They are many mistakes.

Offline

#4 2011-01-11 07:40:54

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [SOLVED] WMFS status bar and conky

kcirick wrote:

Shouldn't that be called from .xinitrc, as opposed to from wmfsrc?

I don't use wmfs but in dwm I use from .xinitrc

conky -c ~/build/status_conky | while read -r; do xsetroot -name "$REPLY"; done &

to pipe conky to the statusbar
Hope it helps

Last edited by moetunes (2011-01-11 07:41:32)


You're just jealous because the voices only talk to me.

Offline

#5 2011-01-11 10:34:00

UQ-igor
Member
Registered: 2009-03-05
Posts: 42

Re: [SOLVED] WMFS status bar and conky

Thanks for the suggestions. At the end I got it to work as follows:

Created an autostart.sh script which sets by background and starts conky piped to wmfs -s (make it executable)

#!/bin/bash 
feh --bg-fill $HOME/.config/wmfs/ArchWallpaper.jpg
conky | while read -r; do wmfs -s -name "$REPLY"; done

Then called the autostart.sh from wmfsrc

[root]
   # Command you can execute to set the background.
   background_command = "$HOME/.config/wmfs/autostart.sh"
   [mouse] button = "4" func = "tag_next"              [/mouse]
   [mouse] button = "5" func = "tag_prev"              [/mouse]
   [mouse] button = "3" func = "menu" cmd = "rootmenu" [/mouse]
[/root]

and this seems to work for anyone having the same issues.
Cheers,
-igs

Offline

Board footer

Powered by FluxBB