How do I start an app from the UserBootScript in a minimized state?
Try hey, it's available on BeBits. Check out this excerpt from my UserBootscript:
# Workspaces
/boot/beos/preferences/Workspaces &
hey Workspaces set Look of Window 0 to 3
hey Workspaces set Minimize of Window 0 to true
# Workspaces
It starts Workspaces, removes the window tab and then minimizes it.
By christian.corona@gmx.net
This is my one
#!/bin/sh
/boot/beos/preferences/Workspaces &
hey Workspaces set Look of Window 0 to 19 &
hey Workspaces set Feel of Window 0 to 6 &
It removes the border and sets it to on top on all workspaces. I have no idea why someone would want to remove the border from workspaces then minimize it, it just doesn't make sense.
-misza
How to have BeOS remember all the positions and workspaces (arrangment) of apps?
One can use the almighty "hey" command for this.
Launch all your apps and arrange the windows as you please.
Then open a terminal and type the following for each app and each window:
hey AppName get Frame of Window 0
hey AppName get Workspaces of Window 0
Note the replied values and then write a simple Shell script:
#!/bin/sh
/boot/apps/AppName/AppName &
hey AppName set Frame of Window 0 to BRect(333.0, 171.0, 908.0, 939.0);
hey AppName set Workspaces of Window 0 to 3
Note that the numbers of the workspaces are organized in a very
developer-style manner:
WS 1: 1
WS 2: 2
WS 3: 4
WS 4: 8
..
(Note, those numbers are powers of two. So the formula is: 2^(workspace_number-1)
If you want a window to appear on multiple Workspaces, just add the
numbers. Once finished, you can invoke this script using SpicyKeys.
By christian.corona@gmx.net
Links:
Scripting - http://www.beosbible.com/bos/ch_scripting6.html
Bash Basics - http://www.beforever.com/bashtut.htm