Window Maker (logo by Klaus Klingmueller)
 FAQ

   SITE MENU...
 
 * know it
introduction  
features  
gallery  
people  

 * learn it
FAQs  
news archive  
documentation  
mailing lists  
IRC forums  

 * grab it
ftp area [http]  
mercurial  

 * use it
projects  
themes  
misc links  

 * code it
development  


   FAQ - CHAPTER 3

Chapter 3: Configuring Window Maker




3.1  What are those files inside my ~/GNUstep directory?
Here is a synopsis of the files in ~/GNUstep

~/GNUstep/WindowMaker/WindowMaker is main config file. This file controls options such as keybindings, fonts, pixmaps, and focus modes.

~/GNUstep/WindowMaker/WMWindowAttributes controls the "attributes" for individual applications and appicons. Options such as what icon to use are set here. For the most part, this is now best accessed via a right click on a title bar of an application and selecting "Attributes"

~/GNUstep/Defaults/WMState is the file that is automatically generated and contains the current dock settings. It is not recommended to edit this file by hand.

~/GNUstep/Defaults/WMRootMenu specifies what file to use as the root menu. In Window Maker 0.19.0 and higher, this file should be replaced by plmenu from ~/GNUstep/Defaults/WindowMaker so that one can use WPrefs.app to edit the menu.

~/GNUstep/Library/WindowMaker/menu is used to change your root menu, if you are using the old menu style.

3.2  How do I enable the normal X sloppy focus mode?

If you are using WPrefs, you can choose the ``Window Focus Prefrences'' tab and then select the ``Input Focus Mode'' Slider.

Scroll Down and choose ``Sloppy'' Focus Mode.

You may also use a text editor on

	~/GNUstep/Defaults/WindowMaker
and change the following:

	FocusMode = sloppy;

3.3  How do I get my auto-arrange icons to work?

In WPrefs, choose the ``Icon Prefrences Tab'' and select the ``Auto Arrange Icons'' Checkbox.

Or in

	~/GNUstep/Defaults/WindowMaker
set
	AutoArrangeIcons=YES;
and the icons should now auto-arrange.

3.4  How do I get my Meta-Tab to cycle through windows correctly?

To use WPrefs to modify these, choose the ``Ergonomic Prefrences'' tab and check ``Raise window when switching focus with keyboard (Circulate Raise)''

Or you can use a text editor to make sure that these settings are in your ~/GNUstep/Defaults/WindowMaker file:

	CirculateRaise = YES;
	RaiseDelay = 1;
As of 0.61.0, MS Window's Style application tabbing is supported by default.

3.5  How do I get a tile background for my appicons (those things in the dock)?

These can all be adjusted by the ``Appearance Preferences'' tab in WPrefs.

Select the tile and then choose the edit texture dialog. Then you may choose any of the different tile background options in the The old text editor method is provided below for convience.

You need to change one line in your '~/GNUstep/Defaults/WindowMaker' file.

	IconBack = (spixmap, tile.black.xpm, white);
The last parameter is the color that fills in any transparent parts of your icon.

3.6  How do you dock <insert program here> that doesn't have an appicon in the new version of WindowMaker?

There is now an option available to emulate appicons so that Window Maker can dock just about anything now. To dock a misbehaving application, right click on the title bar and select the attributes menu. Next, select the pull down menu's "Advanced Options" item. Under the ``Advanced Options'' menu, select the ``Emulate Application Icon'' Option then Save, Apply and close the dialog.

This should allow you do dock the program normally.

Dan Pascu adds:

Emulate Appicon does exactly the same as dockit. So if Emulate Appicon does not work, dockit will not work either. For such apps you can do nothing. They are badly coded (they do not set the instance.class hints). For these Attributes are also not available, since attributes apply to an instance and/or class hint.

Note: Dockit was previously distributed with Window Maker and was launched from the top dock icon.

Elliott Potter adds:

There's another way to dock applications that misbehave ... I've only done this with a couple of things (Adobe AcroRead is the only one I remember at the moment).

If Attributes -> Advanced Options -> Emulate Application Icon doesn't work:

Dock another application to the clip, where you want your application to go. I used gv, but anything you can dock will work. Quit WindowMaker Edit ~/GNUstep/Defaults/WMState If you're docking to the clip, scroll down to the Workspaces section. When you find whatever you docked, you'll see:

	{
	  Command = gv;
	  Name = GV.gv;
	  AutoLaunch = No;
	  Forced = No;
	  BuggyApplication = No;
	  Position = "6,0"
	  Omnipresent = No;
	  DropCommand = "gv %d";
	},
Edit it to use the info for your new application:
	{
	  Command = acroread;		# use the full pathname if you have to
	  Name = acroread.acroread;
	  AutoLaunch = No;
	  Forced = No;
	  BuggyApplication = No;
	  Position = "6,0"
	  Omnipresent = No;
	  DropCommand = "acroread %s";
	},
Then edit WMWindowAttributes, and add a line for your application's icon...you can edit the line that was inserted, or make a new one - I just make a new one: acroread.acroread = {Icon = pdf.tiff;};

Then re-start WindowMaker, and your icon should be there! You can move it around like any other docked app now, but the Attributes section still won't work.

3.7  How do I get x11amp to not have a title bar ( or any other program for that matter )?

Right Click on the title bar and go to the attributes menu. Click on Window Attributes and click the the Disable titlebar and Disable Resizebar options. Click Save, and then click Apply then close the Attributes panel.

By Default, to get back to the attributes menu, use the key combination Control-Esc.

3.8  How do I set a pixmap background?

Here is the in depth explanation straight from the NEWS file:

wmsetbg now accepts the following options:

	usage: wmsetbg [-options] image
	options:
	-d
              dither image
	-m
              match colors
	-t
              tile image
	-s
              scale image (default)
	-u
              update Window Maker domain database
	-D <domain>
              update <domain> database
	-c <cpc>
              colors per channel to use

By default, it will try to guess if dithering is needed or not and proceed accordingly. Using -d or -m will force it to dither or match colors.

Dithering for more than 15bpp is generally not needed, and will only result in a slower processing. Don't use dithering except when needed, because it is slower. Else rely on wmsetbg which will detect if dithering is needed and use it.

-u

   will update the WorkspaceBack in the default database
   domain file in ~/GNUstep/Defaults/WindowMaker, and let Window
   Maker refresh the screen. Please note that this option only
   works under Window Maker, and will have no effect under
   other window managers, since it rely on Window Maker to
   update the image after it reads the updated defaults
   database.
-D
   <domain> is same as above, but will update the domain
   <domain> instead of the default Window Maker domain.
-c
   <cpc> will set the color per channel to use. Only needed for
   PseudoColor visuals. Window Maker will automatically pass
   the value read from the Window Maker domain database.

The following line is straight from your WindowMaker-0.15.x ~/GNUstep/Library/WindowMaker/menu file and should all be on one line.

"Images" OPEN_MENU BACKGROUNDS_DIR ~/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t

This should give you an idea on how to add other entries for different image directories. See the help info at the top of the ~/GNUstep/Library/WindowMaker/menu file for more information.

If you for some reason would like to set your background image with XV, for instance to use an image format not yet supported by wmsetbg or to use one of XV's special modes, edit the file ~/GNUstep/Library/WindowMaker/autostart and insert the line

	xv -root -quit -maxpect ~/background.jpg
or
	xv -root -quit -max ~/background.jpg
you can also try variations of this to get different tiling and other effects (where X is a number 1-9 I believe): 'xv -root -quit -rmodeX ~/background.jpg'

If you would like xv functionality in your menu, heres a nice little tip from Alfredo:

Add the following line to your ~/GNUstep/Library/WindowMaker/menu file. (all on one line)

"More Backgrounds" OPEN_MENU /home/whoever/backgrounds xv -root -maxpect -quit

3.9  Can I put pixmaps in my root menu and title bars?

Put the pixmaps in a directory that is located in your pixmap path set on ``Search Path Configuration'' Tab.

Then switch ``Appearance Preferences'' tab and select what widget you would to adjust under the ``Texture'' tab. Click edit. Chose an image texture format and then search for the texture.

You can use a similar procedure for any type of menu editing.

You can use png, gif, ppm, tiff, jpeg and xpm images interchangeably in Window Maker if you have compiled in support for those formats.

3.10  How do I get my Minimize Icon to look like the triangle I see in screenshots?

This involves a minor source tweak. Instructions are available at http://largo.windowmaker.org/tips.php#titlebar_icons

3.11  Why does Netscape have a black and white Icon when I minimize it?

Craig Maloney has this answer:

If you happen to --enable-openlook at compile time, Netscape (and presumably other apps as well) believe they're running under OLVWM, and minimise with monochrome icons. Once compiled without OpenLook support, Netscape minimizes with the correct icon.

3.12  How do I get superfluous bells and whistles working?

Open WPrefs and go under the ``Other Configurations'' tab. Under ``Animations and Sound'', depress the Superfluous tab.

Alternatively, you may add

	Superfluous=YES;
to your ~/GNUstep/Defaults/Windowmaker file.

3.13  How do I get the classic NeXT(tm)-like style back?

Open WPrefs and go under the ``Other Configurations'' tab. Under ''Title Bar Style'', select the classic look.

Or you can add

	NewStyle=NO;
to your ~/GNUstep/Defaults/Windowmaker file.

3.14  How do I get the window menu with only a two button mouse?

In WPrefs, under ``Mouse Prefrences'', the mouse actions can be mapped to a button of choice.

Jim Noble explains another way to do this:

If you've got a two-button mouse under some versions of Solaris x86, there's no way (that I'm aware of) to emulate a 3-button mouse. The right button can be either MB2 or MB3, but chording doesn't work.

	ApplicationMenuMouseButton = Left;
and
	WindowListMouseButton = Right;
in ~/GNUstep/Defaults/WindowMaker ought to allow the left button to activate the root menu, and the right button (as MB2) to activate the windows menu.

3.15  How do I edit my root menu?

You can now use WPrefs.app ( its appicon looks like a heart rate meter with a GNUStep icon backgroud ). Note that this will replace any oldstyle menus and there is no way to convert the oldstyle menu to the new libproplist style menu.

For old style menus, edit the file

	~/GNUstep/Library/WindowMaker/menu
and save your changes. Window Maker should detect the change and automatically update. If you are having a problem getting it to reload the menu, try

	touch menu
to force the modification time into the future.

3.16  WPrefs disappeared from the Dock! How do I get it back?

Pascal Hofstee offers this answer:

You should just start it from a terminal by supplying it's FULL path-name, which is usually the following:

    /usr/local/GNUstep/Apps/WPrefs.app/WPrefs
At this point, a new appicon should be generated which can be placed back into the Dock.

3.17  How can I define my own Icon for a program? (instead of the Icon the Application Supplies?)

You can right click on the titlebar of the running app and choose the "Attributes..." option, then click on the "Ignore client supplied icon" checkbox. Click "Apply", "Save" and close the Attributes Editor.

Another method is to edit ~/GNUstep/Defaults/WMWindowAttributes by hand and use the AlwaysUserIcon=YES; option for the app. For example:

xmcd = { Icon = "Radio.xpm"; AlwaysUserIcon=Yes; };

3.18  How do I turn off the workspace titles between workspaces?

In Window Maker 0.60.0, an option was added to turn this off.

By editing

	~/GNUstep/Defaults/WindowMaker
insert or modify the key

	WorkspaceNameDisplayPosition = none;
Other valid options for this include center/top/bottom/topleft/topright/bottomleft/bottomright;

3.19  How do I add dynamic items to my root menu?

A few programs are floating about, notably wkdemenu.pl that can produce output from other menu styles. In order to get WindowMaker to launch the process everytime you want to use the menu, use something like

	  ("External Menu", OPEN_MENU, "| bob.sh")
in a proplist style menu. You can tell if you have a proplist style menu if you can edit it with WPrefs.

You can do this directly in WPrefs by going to the menu editor, adding an "external menu", and then clicking the "ask guru button" and filling in the process name.

Thanks to Igor P. Roboul

3.20  How do I remove or hide appicons?

There are two options here, and you need to consider which one you prefer. Read both of these before you decide.

First, if you do not want to use the clip or dock at all, you can launch wmaker with with

	wmaker --no-clip --no-dock
and then in

	~/GNUstep/Defaults/WMWindowAttributes
add

  "*" = {NoAppIcon=Yes;};
The problem with this method is if you use the dock for dockapps, it renders them with out an appicon to write to. An alternative method if you are willing to let the clip be on your desktop is to right click on the clip > clip options > auto attract. Double click the clip so that it is grayed and all appicons will be hidden. Then you can hide the clip behind the dock so that it is out of your way. This will allow appicons to work.

3.21  I disabled my titlebar. How can I get it back?

Thanks to Jim Knoble for this answer

Set the focus to the window and then use the keystroke assigned to the titlebar menu. If you're not sure what the keystroke is, you can find out using WPrefs: in the keyboard section, select the `Open window commands menu' item in the list of actions. The keystroke assigned to it ought to appear in the `Shortcut' area'.

Typically it is Control-Esc or F10 in older version of WindowMaker.

3.22  How do I remove ALT+Mouse1 from the action Window Maker grabs for an application?

Do [Button3Down] (for righthanded mouse users, [RightButtonDown]) on the titlebar of the desired window. Choose ``Attributes...''. In the Attributes inspector, choose ``Advanced Options''. Check ``Don't Bind Mouse Clicks''. Apply or Save as desired, then close the Attributes inspector.

The result is that [Alt+Button1] (which usually grabs a window to move it around), [Alt+Button2] (which usually grabs a window to move it around without changing the window stacking order), and [Alt+Button3] (which usually resizes a window) all get passed to the application instead of performing their usual action.

3.23  How do I configure the Dock and Clip to use less space on a small screen?

This answer is current as of WindowMaker-0.61.1.

For the Clip, either:

(a) Disable the Clip from WPrefs (panel number 7), or
(b) Hide the Clip under the Dock (for example, in the upper righth and corner of the screen).

[b] is probably more useful on desktops with limited space, since you can still set the Clip to attract app-icons so they don't clutter your desktop.

For the Dock, try the following:

(1) Exit Window Maker.
(2) Log in via a text console or using a different window manager.
(3) Edit ~/GNUstep/Defaults/WMState using your favorite text editor (for example, vi, emacs, or pico).
(4) Find the `Applications' part of the `Dock' structure. Find the item with `Position = "0,0";'. Change the `Command' item to the command you want the top tile to launch. Change the `Name' item to the "<instance>.<class>" name of the application you just made the Command item start (for example, if `Command' is `"xedit"', then `Name' should be `xedit.Xedit').
(5) Save the WMState file.
(6) Start an X session with Window Maker.
(7) Check that the top tile starts the command you told it to. (You should still also be able to move the Dock up and down using [LeftDrag] on the top tile.)
(8) You can configure the tile (including autolaunch and the drop-command) in the regular manner ([RightButtonDown] on the tile and choose `Settings...' from the resulting menu).

3.24  Why do dashes not work as menu entries?

If you wish to use a - as part of a menu item name, you must enclose the name in double quotes. This will only apply if you're editing the ~/GNUstep/Defaults/WMRootMenu file manually, as it is handled properly within WPrefs.
This will work:

(ssh,
("us-gw", EXEC, "Eterm -e ssh us-gw"),

This will not:

(ssh,
(us-gw, EXEC, "Eterm -e ssh us-gw"),

Thanks to Martin Sillence for pointing this out.


 


Window Maker is © [1997 - 2010] Alfredo Kojima
We welcome community feedback related to the project.
Read the disclaimer for licensing information and other details.
 Your Next Window Manager!
The Window Maker window manager is in no way associated with Windowmaker, the world's leading software for windows and doors.