You are not logged in.
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
Put the script before the exec wmfs. Have you tried it?
Offline
Offline
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
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