LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fluxbox desktop windows (https://www.linuxquestions.org/questions/linux-newbie-8/fluxbox-desktop-windows-504573/)

davimint 11-24-2006 03:59 PM

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.

charle97 11-24-2006 04:07 PM

you'll need to edit the 'apps' file in your .fluxbox directory.

man fluxbox, around line 777 for an explanation on 'application settings'

davimint 11-24-2006 10:15 PM

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.

soldan 11-25-2006 10:28 AM

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.


All times are GMT -5. The time now is 09:01 AM.