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?
snip
>
> thank you
>
> Paolo Pumilia
>
This solution was posted a while back. I find it very useful. Give
credit to lar3ry
<original>
AddToFunc "warp-or-run"
+ "I" Next [$0] Iconify -1
+ "I" Next [$0] Focus
+ "I" None [$0] $1 $2 $3 $4 $5 $6 $7 $8 $9
The first argument ($0) is the name of the window to search for. The
next arguments (up to 9) are the 'Exec' command to run if the window
isn't found.
Using the new FvwmButons module, you can call it as such:
*FvwmButtons(Icon mini-filemgr.xpm, Action 'warp-or-run "moxfm*" Exec
moxfm')
--
------------------ http://www.tiac.net/users/lar3ry/ -------------------
(void) lar3ry(); gensch_at_zk3.dec.com
</original>
Eric
Dogbert: Has your electronic mail system made you more efficient?
Dilbert: In a way... Now I'm getting ignored at the speed of light.
-- Scott Adams
--
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 - 14:14:06 BST