LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-29-2006, 08:19 PM   #1
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
how to I pass window geometry to mozilla-firefox from command line?


I want to run X with no window manager, just a firefox browser window, so I did 'echo firefox > ~/.xinitrc' then 'startx' and it loads firefox just fine but the geometry is not what I would like it to be. The length is fine but width is a little less then half the screen.

per 'firefox -h' there is a -width and -height parameter but this does not effect anything. I think it might rely on the window manager to use this, but I am not positive.

So I searched around a bit and I keep seeing info that says you can do something like 'firefox -geometry 782x909+0+0' but this doesn't seem to effect anything either. All of the text I read that mentions doing this refers to the Ice Windows Manager. Is '-geometry' specific to IceWM, and is it possible to take that functionality from it and use it with just a plain X session?

I have also found a little bit of information here claiming that you can not pass window geometry on the command line without patching the mozilla source. Unfortunately the link to this patch is dead and I was unable to locate it anywhere else.

I really don't know a lot about using '-geometry' so any information on this will be greatly appreciated. I'm not really sure where to look for information. If this is not specific to IceWM, is there anything I can read that talks about it's correct use?

Also, if there is any better way to get a full screen browser without running any window manager, please share what you know.

Thanks for your time!
...drkstr
 
Old 05-30-2006, 12:09 AM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
well I think I am giving up on running a web browser without a windows manager. I am however still interested in any information on the topic if any one is willing to share. I'm going to try my luck with twm and see if I can get it to do what I want.

regards,
...drkstr
 
Old 05-30-2006, 08:51 PM   #3
Crashbox
Member
 
Registered: Jun 2004
Location: USA
Distribution: Slackware
Posts: 136

Rep: Reputation: 21
Let me know if you find anything new about this because it sounds like you trying to implement an idea I've been turning over in my mind.
 
Old 05-30-2006, 09:05 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
I had to do the same thing once and modified some parts of a window manager to achieve that. There are a lot of really small window managers that will let you do what you want, like ratpoison, tinywm, evilwm (or yeahwm).
 
Old 05-30-2006, 09:17 PM   #5
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
So far I have had the most success with fvwm, but I am still experimenting with it so I can't say for sure as of yet if it will do exactly what I want. It seems to be the best combination between size and configurability, and has a sizable amount of documentation on the web as well. I am basically takeing the default fvwm slackware configuration and stripping all functionality out of it so it will do nothing but run the firefox browser. The problem I'm getting is when I take out all menu items from the config file, it seems to leave a default menu when you click on the desktop.

I'll let you know when I figure it out.
...unless anyone already knows and feels like saving me some time

regards,
...drkstr
 
Old 05-30-2006, 10:12 PM   #6
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
This thread has kind of turned into the topic on my other thread here. Please refer to it for any further discussion on this topic since that thread more adequately represents this discussion.

Sorry about that, wasn't trying to double post.

regards,
...drkstr

**edit**
FYI:
My ultimate goal here is to create a a minimal web client and then write some documentation on how I did it. Someone was asking me how to do this and I thought it would be interesting to play with. I am just kind of learning as I go so I would more then happy if anyone else would like to join in on the project and share any input/experiences they have with it. Right now I'm just trying to get the web browser part working, then I'm going to start working on security issues (preventing hax0r Joe Web User from #$$%^@ your web client box up)
**edit**

Last edited by drkstr; 05-30-2006 at 10:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass command-line parameter to shell script? Kropotkin Linux - Newbie 12 07-25-2011 09:24 AM
Retrieve Window ID in command line.. joely2k Linux - General 3 11-26-2005 11:44 AM
Command line to raise a window? joely2k Linux - General 2 11-25-2005 12:42 PM
How do you launch Mozilla Firefox from the command line ? pppaaarrrkkk Linux - Newbie 1 10-07-2005 02:06 PM
How switch from x-window to the command line backpacker Linux - Newbie 1 06-09-2005 03:56 AM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration