You are not logged in.

#1 2015-01-05 18:54:04

rolbrok
Member
Registered: 2015-01-05
Posts: 15

[Fixed] WMFS Statusbar script at startup

Hello,

I'd like to run a shell script after running WMFS in my .xinitrc, but I can't seem to make it work.

#!/bin/sh 
conky -c ~/.conkyrc | while true; read line; do wmfs -c status "default $line";
done

The code works perfectely, and have no issues with it.
my .xinitrc:
#!/bin/bash
feh --bg-fill ~/.wallpaper.png
xbindkeys
pulseaudio --start
exec wmfs
~/.config/wmfs/status.sh

I would like to run the last line after executing wmfs, but it never runs.

Can I change the line "exec wmfs" to "exec wmfs &" without any problem ? And if not, how can the last line be run at startup.

Thanks.

Last edited by rolbrok (2015-01-05 20:59:21)

Offline

#2 2015-01-05 19:25:45

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: [Fixed] WMFS Statusbar script at startup

Put the script before the exec wmfs. Have you tried it?

Offline

#3 2015-01-05 19:38:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Fixed] WMFS Statusbar script at startup


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-01-05 20:40:09

rolbrok
Member
Registered: 2015-01-05
Posts: 15

Re: [Fixed] WMFS Statusbar script at startup

ilusi0n > Yes, and the command 'wmfs -c status "..." ' can only be executed after wmfs, so it didn't work.
jasonwryan > Thank you, I'll see what I can do.

Offline

#5 2015-01-05 20:57:44

rolbrok
Member
Registered: 2015-01-05
Posts: 15

Re: [Fixed] WMFS Statusbar script at startup

Fixed.

I ended up writing 'sleep 7' before the status command, and inverted the line 'exec wmfs' with the line '~/.config/wmfs/status.sh &'.

Offline

Board footer

Powered by FluxBB