Re: FVWM: Most used applications?

From: Nicholas Paul Johnson <nickjohnson_at_virginia.edu>
Date: Wed, 5 May 2004 17:28:41 -0400 (EDT)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 
> Time to start hacking.
>
> BTW the DynamicPopupAction stuff is straight out of the man page (fvwm
> 2.5.10)

Sounds like the mechanism to use. I think I have a working
implementation:

Two scripts: tally.rb (the execution wrapper) and menu.rb (converts the
usage database into a menu). It sorts them by usage frequency (average
uses per day with second's accuracy) and supports a maximum number of
entries. menu.rb should be used with DynamicPopupAction...

Example:

<snip>
[nick_at_manjac rb]$ ./tally.rb xcdroast

[nick_at_manjac rb]$ ./tally.rb xmms

[nick_at_manjac rb]$ ./tally.rb xcdroast

[nick_at_manjac rb]$ ./tally.rb xclock

[nick_at_manjac rb]$ cat ~/.tally_db
xclock 1 1083791904
xcdroast 2 1083791870
xmms 1 1083791877

[nick_at_manjac rb]$ ./menu.rb
AddToMenu FrequentMenu "Common Applications" Title
+ "xclock" Exec exec tally.rb xclock # frequency 124.48988376584 uses/day
+ "xcdroast" Exec exec tally.rb xcdroast # frequency 63.2025731382508 uses/day
+ "xmms" Exec exec tally.rb xmms # frequency 37.3364468851539 uses/day

</snip>

(The averages are very large because we're dividing by about 30 seconds or
so).

The point is, fvwm is great because it's not only configurable by you and
I, but also by scripts or whatever. I don't think one could do this kind
of thing with gnome or kde.

Enjoy,
- --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  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.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6

iD8DBQFAmVySfnGNDj6/EKcRAjLqAJ47/MwAYsarmiw/d4ULZrCxbKbVqQCeLU/s
afs8Qp251Vb4maxVVQbcxl0=
=6TR0
-----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 - 17:37:34 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST