Topic: Having trouble auto-starting apps in Fluxbox

I decided to really try to get into Fluxbox, but already I'm running into problems. I'm wanting to get rid of Fluxbox's bar and use tint2 instead. And to get tint2 and conky to autostart.

So I followed the instructions on the tint2 page, but it's not working for me. I got it to where Fluxbox's bar isn't showing up, but after putting after putting (sleep 2s && tint2) & at the bottom of my startup file, tint2 won't autostart. And it works just fine if I start it from terminal.

The app I'm having trouble autostarting is conky. I put (sleep 3s && conky -q) & in my startup file, but again, this won't pop up either.

Anyone happen to see what I'm doing wrong?

Thanks.

Re: Having trouble auto-starting apps in Fluxbox

alright in flux you need to put the applications before exec fluxbox in the flux startup. That's it my good man, one of the reasons i didn't like flux was the xinitrc style startup.

"'If fighting is to result in victory, then you must fight'...Sun Tzu said that and id say he knows a little more about fighting then you do pal."

- TF2 Soldier

Re: Having trouble auto-starting apps in Fluxbox

Nah, that's still didn't do. I'll post my startup file just so I make sure I'm putting it in the correct place.

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
xmodmap "/home/scott/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &


# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
(sleep 2s && tint2) &
exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/scott/.fluxbox/log"

Re: Having trouble auto-starting apps in Fluxbox

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
xmodmap "/home/scott/.Xmodmap"

# Applications you want to run with fluxbox.
tint2 &
exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/scott/.fluxbox/log"

try that, let me know what happens.

"'If fighting is to result in victory, then you must fight'...Sun Tzu said that and id say he knows a little more about fighting then you do pal."

- TF2 Soldier

Re: Having trouble auto-starting apps in Fluxbox

Thanks, pyscho. That definitely worked. smile

But unfortunately I'm getting the same result conky. I put conky & right above the tint2 & entry, but when I restart fluxbox it's a no-go. Happen to know what's up with that?

EDIT: Nevermind, it's working now. It popped up once I restarted the computer. For some reason it wouldn't start after restarting flux.

Anyways, thanks again pyscho! By the way, for tint2, on fluxbox it shows 4 workspaces. In Openbox it only shows 2. Is there a simple way to make it show only 2 on flux as well?

Last edited by h8uthemost (2011-08-26 07:39:58)

Re: Having trouble auto-starting apps in Fluxbox

Yeah you need to edit your flux config to have only 2 work-spaces. If you want post up your flux config, and a list of mod's you want and ill make the changes for you, and re-upload so you can see. Its no trouble smile, and im glad to help.

P.S: restarting flux doest relaunch the startup

"'If fighting is to result in victory, then you must fight'...Sun Tzu said that and id say he knows a little more about fighting then you do pal."

- TF2 Soldier

Re: Having trouble auto-starting apps in Fluxbox

Thanks for the help, pysco. smile Actually, right now the only having two workspace thing is all I can think of right now. I have nitrogen, conky, and tint2 running at startup. And I set all my key bindings. So right now I think I have it pretty close to my OB set up.

But I'm sure I'll think of more things as I go, so I'll bump this thread as I think of things.

Anyways, thanks for letting me know that I have to edit the .init file to change my workspaces. I found the line and changed 4 to 2, and now I have 2.

Thanks again for helping me out with this. I really appreciate it. And like I said, I have no doubts that I'll think of more things that I'll go, so I'll post back when I'm not able to figure how to do something.

Actually I did think of something. Did you ever use Chrome/Chromium on flux? If you did, then you know that when you minimize or maximize the browser that the browsers screen flickers. And from what I read, the way to fix this is to enable the System Title Bar and Borders in Chrome/Chromium.

Enabling this did fix it. There's no more flickering. But I really can't stand  using the system title bar. So would you happen to know if there is a simple thing I can do to flux to prevent the flickering from happening with out having to enable the system title bar?

EDIT: Ah...just thought of one other thing. tongue According to here, fluxbox can make certain apps tag together by default by editing the apps file. I'm not sure if this is possible, but is there a way to make it so when I middle-click a folder/file in Thunar that it would automatically tab for me?

One thing I dig about Flux is it's tabbing feature. And eventhough I love Thunar and am so glad I'm using it over PCManFM now, I do miss PCManFMs tab feature. So if there's a way to make folders/files to tab together automatically in Thunar by middle-click, I would love to know what exactly to put into my apps file.

Thanks.

Last edited by h8uthemost (2011-08-26 14:22:36)

Re: Having trouble auto-starting apps in Fluxbox

Yes using the flux apps file, and tieing that action to a middle click in the custom thunar binding you can do it, how ever i have no idea on how to make thunar auto tab lol, sorry.

As far as the chrome thing is concerned, i know of no way to have it not flicker in flux (in fact i didnt even know that was a problem i use the GTK border, sorry i cant help with that.

"'If fighting is to result in victory, then you must fight'...Sun Tzu said that and id say he knows a little more about fighting then you do pal."

- TF2 Soldier

Re: Having trouble auto-starting apps in Fluxbox

No problem, pyscho. I played around for quite a while with Thunar and just cannot get it to autotab, and can't find any info on it. So there must not be many people doing this.

And yeah, I guess the flicker thing in Flux has been a problem for quite sometime judging by the open tickets on google.

No biggie though, small things that I can live with.