Discussion:
FVWM: List of windows in a menu
rff
2011-04-22 15:47:16 UTC
Permalink
Hello,

I'd like to have a root menu item that opens a submenu
listing every window. In other words, each item in the
submenu would represent one window and I'd be able to
click it to switch to the selected window. Is this
possible?
When I run WindowList from the root menu, it creates
and "detaches" a submenu containing the list. I don't
want that.

By the way, congrats on the 2.6.0 release! :)

Thanks.
Thomas Adam
2011-04-22 16:49:40 UTC
Permalink
Post by rff
Hello,
I'd like to have a root menu item that opens a submenu
listing every window. In other words, each item in the
submenu would represent one window and I'd be able to
click it to switch to the selected window. Is this
possible?
Using FvwmWindowMenu, I believe so.

-- 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.)
rff
2011-04-22 22:09:16 UTC
Permalink
Post by Thomas Adam
Using FvwmWindowMenu, I believe so.
I'm trying to keep the number of modules/external binaries as low
as possible (old machine), but FvwmWindowMenu runs a Perl binary.
So I'll reconsider my way of doing things.

Thanks anyway.
Thomas Adam
2011-04-22 22:55:16 UTC
Permalink
Post by rff
Post by Thomas Adam
Using FvwmWindowMenu, I believe so.
I'm trying to keep the number of modules/external binaries as low
as possible (old machine), but FvwmWindowMenu runs a Perl binary.
So I'll reconsider my way of doing things.
Umm, given it's *shipped* with FVWM, uses things *shipped* with FVWM, but
requires perl, which is not unreasonable at all, I fail to see what else
there is for you to do to "reconsider". Just what is your perceived
problem?

-- 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.)
rff
2011-04-22 23:56:18 UTC
Permalink
Post by Thomas Adam
Umm, given it's *shipped* with FVWM, uses things *shipped*
with FVWM, but > requires perl, which is not unreasonable at all,
You're absolutely right. I was just looking for a more "compact"
solution. My configs are minimalist to the maximum.
Post by Thomas Adam
I fail to see what else there is for you to do to "reconsider"
My objectives and the way to achieve them.
I'm making a few changes to my config file and I'll just do it
differently than what I first had in mind. Really, it's no big deal.
Gábor Vida
2011-04-23 23:03:01 UTC
Permalink
Hi,

Maybe I don't understand you clearly, but I do it this way (you can of
course make it less "structured"):

DestroyFunc MyMakeMyWindowListFunc
AddToFunc MyMakeMyWindowListFunc
+ I AddToMenu $[0] "Window list" title top
# windows of current desktop
+ I All UseStack (CurrentDesk,!Focused,!Sticky,!Iconic) AddToMenu $[0] $$$$[w.name]\ $$$$[w.class]\ $[desk.n] WindowId $$$$[w.id] MyFocusFunc
# the current window
+ I All (Focused) AddToMenu $[0] $$$$[w.name]\ $$$$[w.class]\ current\ $[desk.n] WindowId $$$$[w.id] MyFocusFunc
+ I AddToMenu $[0] "" Nop
# windows on other desktops
+ I All UseStack (!CurrentDesk,!Sticky,!Iconic,!Focused) AddToMenu $[0] $$$$[w.name]\ $$$$[w.class]\ $$$$[w.desk] WindowId $$$$[w.id] MyFocusFunc
+ I AddToMenu $[0] "" Nop
# iconified windows
+ I All UseStack (Iconic,!Sticky,!Focused) AddToMenu $[0] $$$$[w.name]\ $$$$[w.class]\ iconic WindowId $$$$[w.id] MyFocusFunc
# sticky windows
+ I All UseStack (Sticky,!Focused,!CirculateHit) AddToMenu $[0] $$$$[w.name]\ $$$$[w.class]\ sticky WindowId $$$$[w.id] MyFocusFunc

AddToMenu MyWindowList "Window list" title
+ DynamicPopupAction MyMakeMyWindowListFunc MyWindowList
+ DynamicPopDownAction DestroyMenu recreate MyWindowList

And then you can use it in a menu definition

AddToMenu RootMenu
+ "Window List" Popup MyWindowList
--
Best regards,
Gábor
Thomas Adam
2011-04-23 23:25:10 UTC
Permalink
Post by Gábor Vida
Hi,
Maybe I don't understand you clearly, but I do it this way (you can of
Yes, and you'd be reinventing what FvwmWindowMenu provides. Here, here's a
square; keep filing the edges until its corners are round.

-- 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.)
Gábor Vida
2011-04-24 01:12:57 UTC
Permalink
Post by Thomas Adam
Yes, and you'd be reinventing what FvwmWindowMenu provides.
Yes, without Perl and an additional process. (By the way, can you create
"sections" with FvwmWindowMenu based on window's properties like sticky?)
Post by Thomas Adam
Here, here's a square; keep filing the edges until its corners are
round.
If you mean complexity, it's just linear. If it is a phrase, then I
don't understand.
--
Best regards,
Gábor
Continue reading on narkive:
Search results for 'FVWM: List of windows in a menu' (Questions and Answers)
3
replies
What is Linux?
started 2007-06-21 07:43:04 UTC
software
Loading...