Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: SamK on November 27, 2011, 07:11:31 AM
-
The recent release notice of TC v4.1 included:
* Updated mnttool added -g option for user defined initial position when used in .xsession.
What is the correct form to use for such an entry?
-
Hi SamK
I believe the syntax is -g +x +y so mnttool -g +100 +200 should offset mnttool 100 pixels to the
right and 200 pixels down.
-
To position to the corners use:
mnttool -g -0+0 top right
mnttool -g -0-0 bottom right
mnttool -g +0+0 top left
mnttool -g +0-0 bottom left
EDIT: corrected top left had an extra leading -
-
Hi roberts
Thanks for that explanation. I was under the false impression that the + signs referred to the
direction of offset, never occurred to me they might refer to which corner to reference.
mnttool -g -+0+0 top left
I think you have one too many - signs in there.
-
Corrected post. Thanks.
-
To position to the corners use:
mnttool -g -0+0 top right
mnttool -g -0-0 bottom right
mnttool -g +0+0 top left
mnttool -g +0-0 bottom left
Thanks thats fine.
Purely for interest...
During a single session, if mnttool is closed then re-opened via a menu, it reverts to the default position (towards upper left) on screen. Is there a way to force the user choice of location in such circumstances?
-
You'd need to edit the .desktop file.
-
You'd need to edit the .desktop file.
I have a distant recall of a mnttool variable being available and was wondering if this might be used.
-
Sure can. In v3.83 I added the capability of using an environment variable MNTTOOL to specify position of mnttool widget.
Just add to your .profile
Example
export MNTTOOL="800 0"
If you primarily use mnttool via icon or menu then the env variable is easier. If you suppres the icon and primarily start mnttool from .xsession then likely the -g option is more useful.
-
hi friends,
thanks to roberts advice i use a very flexible export-variable to position mnttool at the upper right side
and that fits for all my screen resolution (800x600, 1024x600, 1280x768, 1400x1050).
export MNTTOOL="2000 52"
roberts' export-variable is so flexible that it's always well-positioned :)
for me it was a real enhancement in usability to put the mnttool aside to my active windows,
on the left side i had to much hustle...
thank you, roberts!
-
Sure can.
Thanks - works fine.
-
Having edited .profile to include
export MNTTOOL="1024 50"
and lived with my preferred placement for a few days everything is fine except for a single, cosmetic issue.
With mnttool running, connecting a USB flash drive and refreshing mnttool results in the drive being correctly included in the mnttool list, however the entire mttool window moves down the screen. Both the top edge and bottom edge of the window move vertically down the screen. Attaching a further drive repeats the process.
Removing a drive and refreshing mnttool, the top edge of the window remains in the same (lower) vertical location and the bottom edge moves upward to account for the removed drive.