-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Shay,
I don't think fvwm supports this directly; but you can script it...
If you could wrap all of your apps from a script which keeps a tally of
number of times its been run, then you would be able to create such a
menu. Unfortunately, you would still need to restart fvwm before this
menu is updated.
So, I wrote an example script (attached as tally.rb, written in ruby, < 60
lines). One must modify his .fvwm2rc file to use it:
<snip>
AddToMenu SomeMenu "Apps"
+ "Browser" Exec exec tally.rb Browser
+ "Editor" Exec exec tally.rb Editor --some-flag
</snip>
Compared to the original:
<snip>
AddToMenu SomeMenu "Apps"
+ "Browser" Exec exec Browser
+ "Editor" Exec exec Editor --some-flag
</snip>
This script will then generate an fvwm-style menu in some file (the
attached example uses ~/.fvwm_dynamic_menu), which you can include into a
.fvwm2rc (note that you need to restart before changes take effect):
<snip>
Read .fvwm_dynamic_menu
</snip>
This program could also be used from the command line, i.e.
nick_at_home$ tally.rb echo Hello World
Hello World
But this seems less useful; you cannot supply command line parameters in
as useful a fashion in programs are launched from a menu.
Hope this helps.
- --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Nicholas Paul Johnson
o nickjohnson \at\ virginia \dot\ edu
o 3ebf10a7 subkeys.pgp.net
o
http://manjac.ath.cx/nick
o "When all you've got is a hammer,
everything looks like a nail.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
On Wed, 5 May 2004, Xavier Maillard wrote:
> On 4 May 2004, Shay wrote:
>
> > Is there a way for FVWM to find the most used applications? I'm
> > dreaming of a command line interface which automatically builds a root
> > menu for quick access to the most often used items.
>
> Hummmm, dunno if it exists but I just love the idea yet :)
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6
iD8DBQFAmG5DfnGNDj6/EKcRAtt0AJ9BNERSvc8h1NMQtmmJFx19Nmrx2gCeL1VE
5GbuxR0wJrVsH0/UtjSibIU=
=i6F+
-----END PGP SIGNATURE-----
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed May 05 2004 - 00:40:42 BST