Paulo--
I have a window-manager-independent solution to this problem, called
`xcmd'. Here's the LSM entry:
Begin3
Title: xcmd
Version: 1.5
Entered-date: 11AUG97
Description: Xcmd is a front-end for starting programs under X11.
You can tell xcmd to look for a window with a specific
class, resource name, or title string (using the
`--find-<property>' options); if it finds one or more,
xcmd will `raise' them, otherwise it will run the
command you specify. You can tell xcmd to run commands
that create their own windows (using `--xcmd'), or to
run commands inside a terminal window (using `--cmd')
with various options.
Keywords: X11, xterm, rxvt, command, utility, xwit, xwininfo
Author: Jim Knoble <jmknoble_at_pobox.com>
Maintained-by: Jim Knoble <jmknoble_at_pobox.com>
Primary-site: sunsite.unc.edu /pub/Linux/X11/xutils
16kB xcmd-1.5.tar.gz
Alternate-site:
Original-site:
Platforms: X11R6
Copying-policy: GPL
End
--jim
############### jim knoble ######## jmknoble_at_pobox.com #################
On Sun, 17 Aug 1997, Linux-Debian Team wrote:
: I am used to open a note pad from time to time, anywhere in my
: workplace. My note pad is a plain text file edited through vi in
: xterm and i can pop it up either by key composition or selecting
: a menu item in fvwm2 root context.
: Often it happens i try to open my notes file twice simultaneously,
: having forgotten a vi session is already active on another desktop
: of my workplace.
: Here my question follows: is there a viable solution in order to
: avoid opening twice the sape file?
:
: A further question comes to my mind:
: May it be possible to apply a condition to the execution of a command
: in fvwm2 ? In affirmative case, the window manager could be asked
: to execute a script file; then, depending on the result, to start
: one function or another. In the present case, the script would
: check whether the requested (my notes) file is already open.
:
: thank you
:
: Paolo Pumilia
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Sun Aug 17 1997 - 11:11:37 BST