View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Apr 15, 2005 5:13 pm 
Offline
Joined: Tue Apr 05, 2005 5:04 am
Posts: 40
In fluxbox, the default window manager in KnoppMyth, the way to get things to run automatically upon login is to put them in ~/.fluxbox/apps as [startup] entries. If you look at this file there are a couple of entries there by default to disable the screensaver, and to start up the front end.

I needed some other things to happen as well, so I created a script. Since I was going to be executing the script, I decided to move the startup entries from the apps file to my startup script and then just have one startup entry in the apps file to run the script. Here's what the startup entry now looks like from ~/.fluxbox/apps:
Code:
[startup] {~/startup.sh}

And here's what my ~/startup.sh looks like:
Code:
#!/bin/sh
#disable screen blanking
xset -dpms s off
#start up an xterm to alt-tab to w/o exiting myth
xterm &
# Load nVidia driver custom settings
nvidia-settings --load-config-only &
#start up knopp-myth
/usr/local/bin/KnoppMyth-run


In addition, I've got an xterm starting up and being put into the background, that way I can alt-tab to it without having to exit the frontend. Also i've got nvidia-settings restoring my display config, for overscan, etc.

No real advantage to this other than it's a bit more elegent perhaps. If you wanted to do some more sophisticated things on start up, the script could accomodate that, where the fluxbox config file by itself might not. But mostly this keeps you from having to customize specifically to fluxbox, so you could change window managers if you wanted, and you would just have to tell that window manager to run startup.sh on login.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 35 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu