# This file creates at bottom of the screen two separate panels, both used as
# window lists. You can make some actions on windows:
# - LMB will switch page to where selected window is located and focus it
# - RMB will bring selected window to actually active page
# - Alt+Shift+MMB will close selected window
# Panels are displaying only normal windows, iconified are removed from panel.

# --- FvwmIconMan-Windows-Left ---
All (FvwmIconMan-Windows-Left) Close
DestroyModuleConfig FvwmIconMan-Windows-Left*

*FvwmIconMan-Windows-Left: Resolution Global
*FvwmIconMan-Windows-Left: UseWinList True
*FvwmIconMan-Windows-Left: DontShow Class=xmms,XTerm,Eterm,Multi-gnome-terminal,urxvt,Fvwm*
*FvwmIconMan-Windows-Left: ShowNoIcons True
*FvwmIconMan-Windows-Left: DrawIcons Always
*FvwmIconMan-Windows-Left: Sort Id
*FvwmIconMan-Windows-Left: FollowFocus True
*FvwmIconMan-Windows-Left: Format "%t"
*FvwmIconMan-Windows-Left: Title ""
PipeRead "echo *FvwmIconMan-Windows-Left: ButtonGeometry $((($[vp.width]-12)/2))x24"
*FvwmIconMan-Windows-Left: ManagerGeometry 1x1+3-3
*FvwmIconMan-Windows-Left: Font "xft:Verdana:pixelsize=12"
*FvwmIconMan-Windows-Left: PlainButton flat
*FvwmIconMan-Windows-Left: FocusButton flat
*FvwmIconMan-Windows-Left: SelectButton flat
*FvwmIconMan-Windows-Left: FocusAndSelectButton flat
*FvwmIconMan-Windows-Left: IconButton flat
*FvwmIconMan-Windows-Left: Colorset $[cs-panel-inactive]
*FvwmIconMan-Windows-Left: PlainColorset $[cs-panel-wininactive]
*FvwmIconMan-Windows-Left: FocusColorset $[cs-panel-winactive]
*FvwmIconMan-Windows-Left: SelectColorset $[cs-panel-active]
*FvwmIconMan-Windows-Left: FocusAndSelectColorset $[cs-panel-active]
*FvwmIconMan-Windows-Left: IconColorset $[cs-panel-inactive-MiniIcon]

*FvwmIconMan-Windows-Left: Action Mouse 1 A SendCommand "Function Focus-DefaultDesk"
*FvwmIconMan-Windows-Left: Action Mouse 2 $[Mod2] SendCommand "Close"
*FvwmIconMan-Windows-Left: Action Mouse 2 $[Mod0] SendCommand "Thumbnail"
*FvwmIconMan-Windows-Left: Action Mouse 3 $[Mod] SendCommand "Function Focus-CurrentDesk"


# --- FvwmIconMan-Windows-Right ---
All (FvwmIconMan-Windows-Right) Close
DestroyModuleConfig FvwmIconMan-Windows-Right*

*FvwmIconMan-Windows-Right: Resolution Global
*FvwmIconMan-Windows-Right: UseWinList True
*FvwmIconMan-Windows-Right: DontShow Class=xmms
*FvwmIconMan-Windows-Right: Show Class=XTerm,Eterm,Multi-gnome-terminal,urxvt
*FvwmIconMan-Windows-Right: ShowNoIcons True
*FvwmIconMan-Windows-Right: DrawIcons Always
*FvwmIconMan-Windows-Right: Sort Id
*FvwmIconMan-Windows-Right: FollowFocus True
*FvwmIconMan-Windows-Right: Format "%t"
*FvwmIconMan-Windows-Right: Title ""
PipeRead "echo *FvwmIconMan-Windows-Right: ButtonGeometry $((($[vp.width]-12)/2))x24"
*FvwmIconMan-Windows-Right: ManagerGeometry 1x1-3-3
*FvwmIconMan-Windows-Right: Font "xft:Verdana:pixelsize=12"
*FvwmIconMan-Windows-Right: PlainButton flat
*FvwmIconMan-Windows-Right: FocusButton flat
*FvwmIconMan-Windows-Right: SelectButton flat
*FvwmIconMan-Windows-Right: FocusAndSelectButton flat
*FvwmIconMan-Windows-Right: IconButton flat	
*FvwmIconMan-Windows-Right: Colorset $[cs-panel-inactive]
*FvwmIconMan-Windows-Right: PlainColorset $[cs-panel-wininactive]
*FvwmIconMan-Windows-Right: FocusColorset $[cs-panel-winactive]
*FvwmIconMan-Windows-Right: SelectColorset $[cs-panel-active]
*FvwmIconMan-Windows-Right: FocusAndSelectColorset $[cs-panel-active]
*FvwmIconMan-Windows-Right: IconColorset $[cs-panel-inactive-MiniIcon]

*FvwmIconMan-Windows-Right: Action Mouse 1 A SendCommand "Function Focus-DefaultDesk"
*FvwmIconMan-Windows-Right: Action Mouse 2 $[Mod2] SendCommand "Close"
*FvwmIconMan-Windows-Right: Action Mouse 2 $[Mod0] SendCommand "Thumbnail"
*FvwmIconMan-Windows-Right: Action Mouse 3 $[Mod] SendCommand "Function Focus-CurrentDesk"


DestroyFunc FvwmIconMan-Windows
AddToFunc FvwmIconMan-Windows
+ I Test (!Start) All (FvwmIconMan-Windows-*) Close
+ I None (FvwmIconMan-Windows-Left) Module FvwmIconMan FvwmIconMan-Windows-Left
+ I None (FvwmIconMan-Windows-Right) Module FvwmIconMan FvwmIconMan-Windows-Right
+ I EWMH-Panel-Bottom 32

