Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 03 Sep 2014, 03:37
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
how to start programs maximised
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
Marek M.

Joined: 27 Jan 2011
Posts: 14

PostPosted: Fri 18 Feb 2011, 14:59    Post subject:  how to start programs maximised  

I'd like to do that via startup options, script, or init file, as my mom (70) might get confused when windows start minimised, too small or partially off-screen. I'm not around to help her hitting the button for maximising or telling her how to use the right-click menue, so starting maximised would be ideal, she is not likely to use more than one program simultaneously anyway. Programs she uses: Thunderbird, Firefox, and Abiword.
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 896
Location: .ar

PostPosted: Sat 19 Feb 2011, 00:36    Post subject:  

Hi...
Did you try to use a 'geometry' parameter?
I don't use Firefox or Thunderbird so I can't test it, but Abiword understand this command, 'X' and 'Y' its the screen size:
Code:
abiword --geometry=XxY
.
Change X and Y for your resolution numbers (like 800x600, 1024x768 and so on).
Change thoses numbers until you found the launched Abiword window good enought.
Regards.

_________________

Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6430
Location: Auckland, New Zealand

PostPosted: Sat 19 Feb 2011, 02:05    Post subject:  

How about using a tiling window manager? Wink

You can specify for particular programs to be started maximised using the group settings in your JWM configuration.
http://joewing.net/programs/jwm/config.shtml
But the biggest problem with JWM is that you'll probably want to hack it to disable window shading.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Marek M.

Joined: 27 Jan 2011
Posts: 14

PostPosted: Mon 21 Feb 2011, 11:19    Post subject:  

> abiword --geometry=XxY
That works well for abiword, thank you (though not for FF and TB).


> group settings in your JWM configuration
I forgot to mention that it's about desktop icons (I cleared the desktop except for three icons, to keep it as simple as possible). Do changes in the JWM config influence the behaviour of windows launched by desktop icons, too?
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6430
Location: Auckland, New Zealand

PostPosted: Tue 22 Feb 2011, 01:54    Post subject:  

Yes.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Marek M.

Joined: 27 Jan 2011
Posts: 14

PostPosted: Tue 22 Feb 2011, 18:29    Post subject: problems using groups  

I used
Code:
exec firefox -height 768 -width 1024 "$@"

in the desktop icon's file. This won't work for Thunderbird, though.

I added
Code:
    <Group>
      <Class>*</Class>
      <Name>Thunderbird Email Client</Name>
      <Option>maximized</Option>
   </Group>

to
/etc/xdg/templates/_root_.jwmrc, running fixmenus and "jwm -restart" afterward--didn't have any effect (I also tried "Thunderbird" and "thunderbird" as name).
In usr/share/applications/thunderbird.desktop both "Name" and "GenericName" is "Thunderbird Email Client". Besides, I don't know what to use as class. Any idea?
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Tue 22 Feb 2011, 18:47    Post subject:  

try running xwininfo in rxvt and clicking on the window of whatever app you are wanting info on (class, name ...) I forget what info it gives, but I cna't think of anything better at the moment other than easter egging the name/class
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Marek M.

Joined: 27 Jan 2011
Posts: 14

PostPosted: Wed 23 Feb 2011, 11:49    Post subject: xwininfo/group  

> xwininfo

I didn't know that one, quite handy, thx, it says:
Code:
Window id: 0x1e00081 "Inbox - Mozilla Thunderbird"
...
Class: InputOutput
...


No entry for "Name", so I tested:
Code:
<Group>
<Class>InputOutput</Class>
<Option>maximized</Option>
</Group>
and
Code:
<Group>
<Class>*</Class>
<Option>maximized</Option>
</Group>

Unfortunately no effect on any window, though after calling fixmenus this group does appear in .jwmrc.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Wed 23 Feb 2011, 12:58    Post subject:  

while you are working on this you may want to add the groups to /root/.jwmrc-tray instead, so all you have to do is jwm -restart (no fixmenus required)

for the name try looking in the .desktop file or running top to see the actual command that is running (mozilla apps usually have 2-3 scripts that wrap the actual binary) ... for instance seamonkey-bin is the name for seamonkey - check in the thunderbird directory for the matching actual binary file

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0610s ][ Queries: 11 (0.0063s) ][ GZIP on ]