You are not logged in.
Pages: 1
Hey,
I thought this was a dumb question and I tried looking at how fvwm-menu-directory worked but I couldn't get mine to work the same so I was wondering if there is another way. I've written a Python script that is in $PATH and outputs this:
DestroyMenu MenuMounts
AddToMenu MenuMounts
+ "Mount /media/iPod"% Exec exec mount /media/iPod
+ "Mount /media/Phone"% Exec exec mount /media/Phone
+ " " Nop
+ "Unmount /media"% Exec exec umount /mediaHow would I go about plugging that into my menu and have the script run each time I view the menu so the content is updated? I googled for fvwm pipe menu but didn't get much helpful, is there something better I should have searched for?
Ta ![]()
Offline
You might be able to use FvwmEvent to do this. I'm not sure what events it can respond to though.
Another option is to do this inside of a FvwmScript that calls the script every X seconds. That's obviously less ideal..
I am a gated community.
Offline
Wait, I'm an idiot. Just call a function that runs your script and then opens the menu. i.e.
Key 1 A MC RunScriptAndOpenMenu
DestroyFunc RunScriptAndOpenMenu
AddToFund RunScriptAndOpenMenu
+ I MenuMounts
+ I Menu Blah
(the code is probably wrong, I'm not on my Arch box.)
I am a gated community.
Offline
Offline
Pages: 1