Hello all,
I am running DevMon to automatically mount usb drives. I would like to dynamically add an icon on my dock if a drive is inserted and removed when a drive is removed or unmounted. I was thinking about maybe clicking the icon to unmount the drive as I am not a big fan of just pulling out the drive although using Sync for ext drives or flush for vfat drives is an option.
Can this be done using SendToModule? I have been looking for some examples online but I haven’t found any.
+ I module FvwmButtons FvwmDock
[code]
Style FvwmDock NoTitle, StaysOnTop, Sticky, WindowListSkip,
CirculateSkipIcon, CirculateSkip, HandleWidth 0, BorderWidth 0,
NeverFocus, Layer 1
DestroyModuleConfig FvwmDock: *
*FvwmDock: BoxSize fixed
*FvwmDock: Colorset 1
*FvwmDock: Rows 8
#1920x1200
*FvwmDock: Columns 101
*FvwmDock: Geometry 1920x50+0+0
*FvwmDock: Padding 0 0
*FvwmDock: Frame 0
show main menu
###########
start terminator
###########
*FvwmDock: (3x8+3+0, ActionOnPress,
Icon $[fvwm_app_icons]/terminator.svg:24x24,
ActiveIcon $[fvwm_app_icons]/terminator.svg:48x48,
Action(Mouse 1) exec exec $[fvwm_term]
, [/code]
Thank you,
Tony