Discussion:
FVWM: SendKey Multicast ...
Bastian
2012-11-22 14:06:43 UTC
Permalink
Hi List,

I wonder if it is somehow possible to send key events (typed in a
head-window) to a set of other client-windows...

This could help in doing small sized cluster/VM administration ...



Thanks,
Thomas Adam
2012-11-22 14:17:11 UTC
Permalink
Post by Bastian
Hi List,
I wonder if it is somehow possible to send key events (typed in a
head-window) to a set of other client-windows...
This could help in doing small sized cluster/VM administration ...
This is what tmux(1) using its "synchronize-panes" option is for.

-- Thomas Adam
Bastian
2012-11-22 14:32:20 UTC
Permalink
Post by Thomas Adam
This is what tmux(1) using its "synchronize-panes" option is for.
Great. I will go for tmux then!

I my setup I will have tmux inside tmux then ...
Dan Espen
2012-11-22 14:17:02 UTC
Permalink
Post by Bastian
Hi List,
I wonder if it is somehow possible to send key events (typed in a
head-window) to a set of other client-windows...
This could help in doing small sized cluster/VM administration ...
If you are trying to generate a keystroke for an xterm, the
xterm won't accept a synthetic keystroke unless you've
selected "allow sendevents". (Its a security hole to allow it.)

Do some Google searches on "xwindows synthetic".
The first hit I got discussed the issues in the context of
a security exploit. It also mentioned some programs.

Fvwm doesn't have a command to generate keystrokes.


(Note: this reply was first posted in 2002.)
--
Dan Espen
Bastian
2012-11-22 14:37:40 UTC
Permalink
Post by Dan Espen
Fvwm doesn't have a command to generate keystrokes.
I was thinking about:

WindowId 0x1402179 FakeKeypress press H

where the winid is a urxvtc

this works for me as an example...
Dan Espen
2012-11-22 14:39:03 UTC
Permalink
Post by Bastian
Post by Dan Espen
Fvwm doesn't have a command to generate keystrokes.
WindowId 0x1402179 FakeKeypress press H
where the winid is a urxvtc
this works for me as an example...
My mistake.
So many commands, I can't remember half of them...
--
Dan Espen
Loading...