You are not logged in.

#1 2010-01-10 18:23:37

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

[Solved] Trouble running script at Fluxbox startup

I'm trying to execute a script which runs as ~/.left in the terminal.  it runs xrandr commands and works perfectly after fluxbox has started.  so i figure it needs to run after fluxbox in the startup script, so i looked at the wiki and found the format for starting an app after fluxbox:

fluxbox &
fbpid=$

sleep 4
{
   # Applications you want to run after fluxbox has started
   # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN & AT THE END.
   # ipager &
   # gkrellm2 &
   exec ~/.left &
} &

i've tried ~/.left, ~/.left &, exec ~/.left, and the above (also substituted /home/elias/ for ~ just for fun).  the number after sleep is the time after fluxbox has started until it runs the commands.  i've tried 4 so I would have plenty of time to see if anything happened. 

ideas?  answers?  Thanks in advance

Last edited by pw_f100_220 (2010-01-10 19:52:22)


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

#2 2010-01-10 18:37:19

_ThE_MisT_
Member
Registered: 2007-03-04
Posts: 11

Re: [Solved] Trouble running script at Fluxbox startup

did u make your ~/.left executable?

Offline

#3 2010-01-10 18:41:45

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [Solved] Trouble running script at Fluxbox startup

I run like this:

exec ck-launch-session fluxbox &
fbpid=$!
sleep 1
{
   # Applications you want to run after fluxbox has started
   # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN & AT THE END.
   # ipager &
   # gkrellm2 &
xcompmgr -CcfF -I-.015 -O-.03 -D6 -t-1 -l-3 -r4.2 -o.5 &
} &
 
wait $fbpid

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#4 2010-01-10 19:51:36

pw_f100_220
Member
From: about
Registered: 2009-12-03
Posts: 107

Re: [Solved] Trouble running script at Fluxbox startup

FIGURED IT OUT
I stuck "exec xterm &" in .fluxbox/startup, and it didn't run.  that should have worked, so I figured the file wasn't even involved in the startup process.  so i did some diggin:
I use startx which invokes .xinitrc which ran exec fluxbox which DOES NOT read .fluxbox/startup.  now .xinitrc reads "exec startfluxbox"

AKA .fluxbox/startup wasn't being read at all!  Now it is!  And it's beautiful!  I've learned to do more exploring into what runs/is run by what.

Thanks for the responses!

Last edited by pw_f100_220 (2010-01-10 19:54:26)


Sometimes I just want people to expect me to do what I would do instead of what most people would do.

Offline

Board footer

Powered by FluxBB