Here's a little module I threw together so I could have menus which
were created on the fly, based on the contents of a directory.
Sort of like MacIntosh's application menus.
I like being able to throw a new program into my bin directory and
having it automatically appear in fvwm's menus.
All it takes is one entry in .fvwm2rc:
+ "Applications" Module AppMenu {directory}
where {directory} defaults to $HOME/bin, but can be anything you want.
Here are a few examples from my ~/bin directory:
Filename: TkDesk%desk.xpm%
Contents: exec tkdesk
Filename: Calculator%calc.xpm%
Contents: exec xcalc
Filename: xcdplayer
Contains the actual executable
Filename: Games%dir_opened.xpm%
is a symbolic link to /usr/local/games
Someday I would like it to act like a popup menu, but getting
a module to do that would require changing the base code.
Perhaps I'll look into that later...
Let me know if anyone finds this useful.
~John Williams
begin 644 AppMenu.tar.gz
M'XL(")GNAS$``T%P<$UE;G4N=&%R`.T9:U/;2#)?Y5_1T29!)G[B![7+0IT#
M)O$>&!9#R%:24LG2V)Y#EE2:$<0;^._7/3,6QC%):HOLU=4R!9;4W=/3T^^1
M.DERR**L^N0'#FC6-ELM>`(`FVU]K3>;ZFI&#:!=;]8WVYL;M39BZZUVZPFT
M?J10\Y$)Z:4`3ZYX&')O*NZG8^F]R/_?T3'V-]?*Y`>L4:_5VL;>*^V/9B?[
M-UH;[4:KL8'81J/=?_at_*U'R#+%^,?;O^?>.2'6<#`KE2J^!?RH:B.+J^F>%.9
MV,9"A4)U_:%&`>_at_/!MDPC3/)(P;':2QC.4N8(`3^/]2H%BYC'L!NRCS)C(<[
M_L1+U\%+DH"GQ:T"/<*Z\$9LZH5A[#L\DA"R:"PGB%7S]Y_at_7'/.$*5041X+A
MWQPY2AD+N9`./2&P\!,?!6P$KTZ._MWMNX.SOONFV]GKG_at_P*R[HF-5=%%KD3
M7`"]"_5=^(E%`1_E7/K=[M[`[1P<O^D8-JNY>&$R\0R?6S9075_!`5`ON?V7
MX]__`3[V]?BO-S9J#17_[59KL]9J$*A9;SS&_]\QT$.,Z6$:!UG(8!2GL(\^
M1;&X&R>SE(\G$AR_"/6??V[#;_$D_at_G.C+*+90^=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;WWT:MJ;__-C=;S;;^
M_M-J/G[_^3M&U7QXF9M?'7K4\7FC4H-R>=[5Z1>=^V_/#]W!R2X6!JQ)ZI7:
M%Z_8J+&KR&D2VH4"D_at_Z0,/^X6#AZ]=LB("X4#HYV.P?N0>_52>>DUR7D,T<M
I_at_Z!!$1_>X4T1ET:VNI+HOM_at_Q/(J/">1Q/(['\3C^RO_at_OWY]B;0`H``#D
`
end
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed May 01 1996 - 18:30:59 BST