# 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,Fvwm*
*FvwmIconMan-Windows-Left: ShowOnlyIcons Never
*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-9"
*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 Deiconify-Original"
*FvwmIconMan-Windows-Left: Action Mouse 2 MS SendCommand "Close"
*FvwmIconMan-Windows-Left: Action Mouse 2 N SendCommand "Nop"
*FvwmIconMan-Windows-Left: Action Mouse 3 A SendCommand "Function Deiconify"


# --- 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
*FvwmIconMan-Windows-Right: ShowOnlyIcons Never
*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-9"
*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 Deiconify-Original"
*FvwmIconMan-Windows-Right: Action Mouse 2 MS SendCommand "Close"
*FvwmIconMan-Windows-Right: Action Mouse 2 N SendCommand "Nop"
*FvwmIconMan-Windows-Right: Action Mouse 3 A SendCommand "Function Deiconify"


DestroyFunc FvwmIconMan-Windows
AddToFunc FvwmIconMan-Windows
+ I All (FvwmIconMan-Windows-*) Close
+ I TestRc (False) None (FvwmIconMan-Windows-*) Module FvwmIconMan FvwmIconMan-Windows-Left
+ I TestRc (True) None (FvwmIconMan-Windows-Right) Module FvwmIconMan FvwmIconMan-Windows-Right
+ I EWMH-Panel-Bottom 32

