HEPiX X11 Scripts - Tools

This page describes the different tools that are used by the HEPiX X11 scripts.

Index: apply_policy - dump_shell_env - is_hepix - local-client - prepare-wmrc - quota-warn - utmp_update - xinfo - xkillwm - xmessage - xsecure - xsession-fake - xsetfp


Note: all these tools can be found by default under /usr/local/lib/hepix/X11/tools except:

apply_policy

This checks all the settings (usually major switches) in order to detect errors (e.g. window manager not available) and apply the policy. The exact behaviour is described in more details elsewhere.

dump_shell_env

This starts a login shell for the user in order to dump all the environment variables to detect all the settings made in the "profile" files: .login, .profile, .tcshrc...

is_hepix

This tests if a user should run or not the HEPiX scripts. It is meant to be used both by the shells and the X11 parts of the HEPiX scripts. The algorithm is:

local-client

This should start the given client with optional arguments and hang until it finishes (i.e. it can be used as a last client). With -check, it tells if the client can be used (return code being 0) or why it can't be used (message on stdout).

It should work with X terminals and PCs with X emulation with the help of auxiliary programs like ncdrunwm, to be bundled with the HEPiX X11 scripts...

prepare-wmrc

This generates a configuration file for the selected window manager, with a name similar to $HOME/.hepix/wm/generated_wmrc.

This command is usually called indirectly when the user sets $HX_WM to something like "foowm -prepare".

The only window managers currently supported are fvwm and fvwm2.

quota-warn

This is a copy of the program that comes with the HEPiX shells scripts. It is described elsewhere.

utmp_update

This updates the /etc/utmp file by creating or deleting an entry for a given user and display. It is meant to be used only for X sessions.

xinfo

This collects various pieces of information about the X environment and can be seen as a merge of `xdpyinfo', `xrdb -symbols' and `xprop -root'.

Its output can be eval'ed by a shell script to provide the informational variables described elsewhere.

xkillwm

This detects the presence of a window manager and optionaly kills it by destroying some of its windows with XKillClient.

xmessage

This is the X client from the X consortium (X11R6.1 distribution) with a small patch to make it disappear automatically when a new X client appears on the screen if the option -shy is used.

There are also two "shortcuts" (scripts): xmessage-ack (display a message that must be acknowledged) and xmessage-tmp (display a temporary message).

xsecure

This "secures" the X server by:

xsession-fake

Simply starts a "fake" HEPiX X session by calling /usr/local/lib/hepix/X11/hep/HEP_Xsession -fake.

xsetfp

This adds an entry to the X server font path (like `xset fp+') but:


Lionel Cons, 8-Jan-1997