Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creating a 'startup' folder for lighter DEs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Fri Apr 16, 2004 6:13 am    Post subject: Creating a 'startup' folder for lighter DEs Reply with quote

Create a directory called .startup in your home directory. Inside put symlinks to applications, shell scripts, whatnot. All of these will be run automatically using this script:

Code:
#!/bin/sh

for i in `ls $HOME/.startup`;
        do eval "$HOME/.startup/$i &";
done


Call that .runstartup. Don't forget to chmod u+x it.

Now, to get that to run, you'll need this line in your .xsession or .xinitrc (I have .xinitrc symlinked to .xsession, which is another tip :)):
Code:
( sleep 2 && $HOME/.runstartup &) &


You want this line before the line that has the windowmanager starting. It waits 2 seconds before running the .runstartup script. You might want to increase that value for heavier WMs, if you have something you specifically want to start after the WM such as fbpanel.

Have fun!
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sat Apr 17, 2004 5:05 am    Post subject: Reply with quote

Is this better than just doing it in .xinitrc? I'm just curious.
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Sat Apr 17, 2004 5:24 am    Post subject: Reply with quote

OdinsDream wrote:
Is this better than just doing it in .xinitrc? I'm just curious.


That is what I was thinking, but I guess just editing a file is harder then coping scripts/programs/whatever into a directory :?: :P
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sat Apr 17, 2004 5:30 am    Post subject: Reply with quote

I mean, I'm really just not sure. I'm sure the original poster had something in mind, so I was wondering if maybe there were some benefits I'm just not picking up on yet?
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Sat Apr 17, 2004 3:07 pm    Post subject: Reply with quote

Actually, I was thinking along the lines of automated installation, or a script that handles such things. You could create a script that easily disables/enables such items. Installation scripts could add items to that folder.
Okay, it's not really useful... but fun. :)
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sat Apr 17, 2004 6:01 pm    Post subject: Reply with quote

Definitely not useless, I'm learning bash scripting right now, and every little snippet helps, believe me.
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum