Next Previous Contents

10. Frequently Asked Questions

10.1 How can I change the position of the application bar?

The appbar should have a "handle" at the upper or left edge that can be used to drag the appbar around the screen by just pressing the left mouse button over it.

You can also drag the application bar around simply by holding down the Alt- or Meta-key and simultaneously pressing the left mouse button over the application bar. You can also invoke the "Move..." entry from the desk-button's popup menu to do the same without having to press Alt/Meta.

The application-bar configuration file, "AppBar", allows you to set a variable named tkdesk(appbar,wm_managed) which can be used to have the apllication bar managed by the window manager, although this is usually not necessary.

10.2 Can I have transparent icons?

No, but have a look at the answer to the next question. As far as I know to have transparent icons in X you need to make use of X11's SHAPE extension. Now as raw X programming is something only for the very brave, I didn't look into this any deeper yet. Any takers?

10.3 How can I change the background colour of the icons and desk items?

The background colour of icons used when the window manager iconifies a window can be set in the configuration file "System". The variable you are looking for is tkdesk(color,icon_background). By setting this variable to the same colour as your root window you can achieve the effect of transparent icons. You can define the colour either as a normal name (such as "grey", "blue") or in the form #rrggbb.

10.4 How can I have a different set of desk items on each virtual screen?

FVWM and similar or derived window managers

First, you have to set the variable tkdesk(desk_items,wm_managed) in the System config file to 1. Then you have to configure fvwm to not decorate windows of class dsk_DeskItem. For instance:

Style "dsk_DeskItem"    NoTitle, NoHandles, WindowListSkip, BorderWidth 0

CDE window manager

As for FVWM, you first have to set the variable tkdesk(desk_items,wm_managed) in the System config file to 1. To tell the CDE window manager (dtwm) to not decorate desk items you have to add the following line to either the file Dtwm or .Xdefaults in your home directory, and then restart dtwm:

Dtwm*dsk_DeskItem*clientDecoration:  none

10.5 How do I configure FVWM mini-icons for TkDesk?

For fvwm95's Style command (like fvwm2 from which it comes) you can use a variety of things to identify a tkdesk window - you don't have to use the name only; you can also use the window's class name or resource string. To find out what the window class and resource string are for a certain type of tkdesk window, use the FvwmIdent module (if you use Debian, this will be under the Window Managers->Modules menu; if you're using the default fvwm95rc that comes with the fvwm95 distribution, this will be under the Programs->Modules menu; I don't know about others).

Anyway, FvwmIdent tells me that the window opened by tkDesk's "Open Browser..." menu has a class name of dsk_FileViewer, so I open the FvwmConsole (or FvwmTalk) module, and enter the commands:

Style dsk_FileViewer TitleIcon mini-filemgr.xpm
Recapture

Then the browser window appears with the appropriate icon. To get the window opened by the "Open Directory..." menu, use: Style dsk_FileList TitleIcon mini-filemgr.xpm

(The "recapture" command is only necessary to apply the command to windows already open; it isn't necessary in your config. file) (Contributed by Daniel Martin, dtm12@jhunix.hcf.jhu.edu)

10.6 Configuring the appbar or popup menus to execute (export foo=bar; program;) doesn't work.

Yes, this is a bit tricky. What you need to do is the following:

dsk_exec sh -c {export foo=bar; program}

10.7