Discussion:
FVWM: manipulating a specific window
Titus von der Malsburg
2011-05-15 22:18:44 UTC
Permalink
Hi list, I'd like to have a key that toggles the state of a specific
window instead of the window that currently has focus. Two thing that
I'd like to have are: toggle iconification of Emacs with Ctrl+F3 and
toggle WindowShade state of Emacs with F3. I sifted through various
resources but can't find the solution. Any help is greatly
appreciated!

Titus
Thomas Adam
2011-05-15 22:26:54 UTC
Permalink
Post by Titus von der Malsburg
Hi list, I'd like to have a key that toggles the state of a specific
window instead of the window that currently has focus. Two thing that
I'd like to have are: toggle iconification of Emacs with Ctrl+F3 and
toggle WindowShade state of Emacs with F3. I sifted through various
resources but can't find the solution. Any help is greatly
appreciated!
Since you make no guarantee of the number of Emacs windows, a blind approach
to this is:

Key F3 A A All (WindowsWhichAreEmacsClassName) WindowShade
Key F3 A C All (WindowsWhichAreEmacsClassName) Iconify

Which means you can reduce this to something like:

Key F3 A A SomeFunc WindowShade
Key F3 A C SomeFunc Iconify

DestroyFunc SomeFunc
AddToFunc SomeFunc
+ I All (WindowsWhichAreEmacsClassName) $0

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Thomas Adam
2011-05-15 22:31:09 UTC
Permalink
Post by Thomas Adam
Post by Titus von der Malsburg
Hi list, I'd like to have a key that toggles the state of a specific
window instead of the window that currently has focus. Two thing that
I'd like to have are: toggle iconification of Emacs with Ctrl+F3 and
toggle WindowShade state of Emacs with F3. I sifted through various
resources but can't find the solution. Any help is greatly
appreciated!
Since you make no guarantee of the number of Emacs windows, a blind approach
Key F3 A A All (WindowsWhichAreEmacsClassName) WindowShade
Key F3 A C All (WindowsWhichAreEmacsClassName) Iconify
Key F3 A A SomeFunc WindowShade
Key F3 A C SomeFunc Iconify
DestroyFunc SomeFunc
AddToFunc SomeFunc
+ I All (WindowsWhichAreEmacsClassName) $0
And before you ask, you could make this a window-specific binding:

Key (NameOfEmacsClass) F3 A A SomeFunc WindowShade
Key (NameOfEmacsClass) F3 A C SomeFunc Iconify

But I don't know if this is going to work well with Emacs, or if it's what
you want. Because Emacs would have to understand synthetic events, which I
am not sure it does, or can be told to do so. YMMV.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Loading...