Hmm...I'll try putting them all in one file.
Have you ever used the command "kstart" ?
It seems to be better suited for writing a startup script, but i'm having some troubles with it as well
Last edited by Ol' Craig; March 31st, 2011 at 07:19 AM. Reason: Oh...it's for KDE :?
no.
i tried to edit that last post.
kstart worked, in that it started the program,
but it rearranged everything i had open
ehh...time to call it a night
thanks again for your time
i'll post again later on my progress
ok, i've got my .ds files working properly
the script works well on startup if i have devilspie set to run automatically, by the gui, in which case i remove the devilspie command at the beginning of the script.
i have tried it as presented below, but nothing happens.
when run, as below, the devilspie daemon and the running script both appear in the system monitor.
i'm a bit confused as to why the script would open the programs and then kill the already running devilspie, but not start devilspie itself, open the programs and kill devilspie.
is there a command that should be included to "run" devilspie?
Got it working!Code:#! /bin/bash devilspie sleep 5 /usr/local/matlab/bin/matlab -glnx86 -desktop -r "edit %f" & sleep 45 pkill -f devilspie exit
I added an ampersand after the devilspie command....it was waiting till devilspie was "done" before executing the remaining commands.
The only other problem I have, is getting firefox to open in the proper place when there are multiple tabs to be restored. if it's just opening a blank browser window it works fine. weird!!Code:#! /bin/bash devilspie & /usr/local/matlab/bin/matlab -glnx86 -desktop -r "edit %f" & evolution & firefox & gnome-terminal & sleep 45 pkill -f devilspie exit
Thanks again for all your help d
Last edited by Ol' Craig; April 1st, 2011 at 05:50 AM. Reason: solved
Also, for reference, here are my devilspie .ds configurations. I found a good balance of using the gdevilspie gui and adjusting the files by hand worked best.
Code:; generated_rule email ( if ( begin ( is ( window_class ) "evolution" ) ( is ( application_name ) "evolution" ) ( contains ( window_name ) "Evolution" ) ) ( begin ( maximize ) ( geometry "1280x980+1280+23" ) ( set_viewport 2 ) ) )Code:; generated_rule firefox ( if ( begin ( is ( window_class ) "Firefox" ) ( is ( application_name ) "Firefox" ) ) ( begin ( maximize ) ( geometry "1280x979+0+24" ) ( set_viewport 4 ) ) )Code:; generated_rule matlab ( if ( begin ( is ( window_class ) "com-mathworks-util-PostVMInit" ) ( is ( application_name ) "<Student Version> MATLAB 7.8.0 (R2009a)" ) ( is ( window_name ) "<Student Version> MATLAB 7.8.0 (R2009a)" ) ) ( begin ( maximize ) ( set_viewport 3 ) ) )Code:; generated_rule matlab_editor ( if ( begin ( is ( window_class ) "com-mathworks-util-PostVMInit" ) ( is ( application_name ) "Editor" ) ( contains ( window_name ) "Editor" ) ) ( begin ( maximize ) ( geometry "1280x980+1280+23" ) ( set_viewport 3 ) ) )Hope this will be helpfulCode:; generated_rule terminal ( if ( begin ( is ( window_class ) "Terminal" ) ( is ( application_name ) "Terminal" ) ( is ( window_name ) "Terminal" ) ) ( begin ( geometry "657x465+1591+97" ) ( set_viewport 4 ) ) )
Bookmarks