LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2006, 04:59 PM   #1
davimint
Member
 
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272

Rep: Reputation: 33
fluxbox desktop windows


How do you set the location and size of application windows in fluxbox. When I open up an application like firefox or gxine I would for it to be centered on my destop and be able to have it a certain size. What controls this so I can see how to work with it.
Thanks eveyone in advance for your help.
 
Old 11-24-2006, 05:07 PM   #2
charle97
Member
 
Registered: Nov 2006
Location: hawaii, usa
Distribution: slackware 14
Posts: 80

Rep: Reputation: 16
you'll need to edit the 'apps' file in your .fluxbox directory.

man fluxbox, around line 777 for an explanation on 'application settings'
 
Old 11-24-2006, 11:15 PM   #3
davimint
Member
 
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272

Original Poster
Rep: Reputation: 33
thanks charle97
That was the info I was hunting... All you have to do is right click on the title frame of the application when in use and use the "REMEMBER" option. What a easy option.. Thanks to everyone on the fluxbox team for makeing that just too eazy.
 
Old 11-25-2006, 11:28 AM   #4
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
hi guys i just spent some time editing the fluxbox 'apps' file, and made some notes that i can refer to in the future, so ill post them here as they may be of help.

the apps file can save a programs dimensions and screen position, aswell as do a few other things.
To find out the name of the program to add to the apps file, use xprop, and with the crosshair click onto the desired window
Code:
xprop | grep -i "?"
replacing ? with

'WM_CLASS'

first string is the 'instance' and is the default, this will be enough for programs with only 1 window, or programs that have more than 1 window that all have to be the same shape and size. In the 'app' file entry, instance string is the default and doesnt need to be stated before the program identifier. in the case of xpdf, the entry looks like this
Code:
[app] (win)
'WM_WINDOW_ROLE'

use this for multi-window programs like gimp, gaim etc, where the windows may need to be different sizes, this will help find the identifier of each individual window of the program. the gimp splashscreen entry looks like this
Code:
[app] (role=gimp-startup)
'WM_NAME'

some program windows dont have a 'wm_window_role' identifier, so we need to match the individual window title (from the top of the screen), i.e this is for the gaim 'Account' window
Code:
[app] (title=.*Account.*)
both the * and the . need to be added here.

********************************************************

example 'apps' entry, matching all firefox windows, with some options

Code:
[app] (firefox-bin)
         [Dimensions] {1026 742}
         [Position] (UPPERLEFT)   {0 0}
[end]
NOTE. when trying out program window sizes, you may need to edit and save the apps file, next open the programs window, CLOSE and REOPEN the window to see any changes.

all this information can be found here

http://fluxbox-wiki.org/index.php/Ho..._the_apps_file

however i urge you to try the way my post suggests first, as i spent some time trying to understand the wiki.

although this post may not be 100% correct, it works for me.

Last edited by soldan; 11-26-2006 at 09:49 AM.
 
  


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
fluxbox : desktop shell gletare Linux - Newbie 4 11-06-2005 01:27 PM
fluxbox desktop gadgets aenimax Linux - Software 11 10-31-2005 11:47 PM
Fluxbox Desktop Icons RaVilj Linux - Software 1 10-01-2005 07:29 PM
How to change from Gnome desktop to Fluxbox desktop? davidas Debian 2 04-26-2004 10:46 PM
where are the desktop icons in fluxbox? coolamit78 Linux - Software 1 10-07-2003 07:43 AM


All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration