sewi's config - simplicity :-)

Here is my current screenshot and config file.
Any improvements are welcome and apreciated :slight_smile:

[code]

----------------------------------------------------------------------

Set Environment variables

----------------------------------------------------------------------

SetEnv fvwm_images $[FVWM_USERDIR]/images
SetEnv fvwm_icons $[FVWM_USERDIR]/icons
SetEnv fvwm_wallpapers $[FVWM_USERDIR]/wallpapers
SetEnv fvwm_scripts $[FVWM_USERDIR]/scripts
SetEnv fvwm_tmp $[FVWM_USERDIR]/tmp
SetEnv fvwm_screenshots $[FVWM_USERDIR]/screenshots

uwaga fvwm_root to nie to samo co fvwm-root (note _ and -)

SetEnv fvwm_root “Esetroot -scale”

----------------------------------------------------------------------

Set the image path

----------------------------------------------------------------------

ImagePath +:$[fvwm_icons]

----------------------------------------------------------------------

----------------------------------------------------------------------

SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0

XorValue 55555

----------------------------------------------------------------------

Virtual Desktops

----------------------------------------------------------------------

DesktopSize 2x1
#DesktopName 0 Main
#DesktopName 1 Work
#EdgeScroll 100 100
EdgeScroll 0 0
Test (EnvMatch HOSTNAME debian) EdgeResistance 150
Test (EnvMatch HOSTNAME cygwin) EdgeResistance 150 150
Test (EnvMatch HOSTNAME debian) Style * EdgeMoveDelay 150
Test (EnvMatch HOSTNAME debian) Style * EdgeMoveResistance 150
EdgeThickness 1

----------------------------------------------------------------------

Mouse and Focus Behavior

----------------------------------------------------------------------

ClickTime 350
MoveThreshold 3
Test (EnvMatch HOSTNAME cygwin) SnapAttraction 5 SameType Screen
Test (EnvMatch HOSTNAME cygwin) SnapGrid 3 3

----------------------------------------------------------------------

define working area for apps - max doesnt exeed this area

----------------------------------------------------------------------

EwmhBaseStruts 0 70 0 0
IgnoreModifiers L25

OpaqueMoveSize -1
Emulate MWM
HideGeometryWindow Never

----------------------------------------------------------------------

cursor styles

----------------------------------------------------------------------

CursorStyle root top_left_arrow gray80 blue
CursorStyle default left_ptr gray80 blue
CursorStyle sys left_ptr gray80 blue
CursorStyle menu left_ptr gray80 blue
CursorStyle title left_ptr gray80 blue
CursorStyle resize fleur gray80 blue
CursorStyle select draped_box gray80 blue

----------------------------------------------------------------------

colorsets

----------------------------------------------------------------------

----------------------------------------------------------------------

Window Colorsets

----------------------------------------------------------------------

Colorset 3 fg #101060, bg #e6e7d7
Colorset 4 fg Black, bg #a6a797
Colorset 5 fg White, bg Black

----------------------------------------------------------------------

Menu Colorsets

----------------------------------------------------------------------

#Colorset 7 fg Black, bg #e6e7d7, sh Black, hi #202070
#Colorset 8 fg DarkRed, bg #e6e7d7, sh Black, hi #202070
Colorset 8 fg DarkRed, bg #d9d9d9, sh #d9d9d9, hi #d9d9d9, Tint White 60, bgTint White 60, fgsh Gray

Colorset 7 RootTransparent, fg Black, bg average, sh Black, \

hi #202070, Tint White 60, bgTint White 60

Colorset 7 fg Black, Translucent White 75, \

hi Black, sh Black

Colorset 7 bg #cfcfcf

----------------------------------------------------------------------

Module Colorsets

----------------------------------------------------------------------

Colorset 9 fg rgb:00/00/00, hi rgb:00/00/00, sh rgb:00/00/00, bg rgb:e9/e9/d9
Colorset 29 RootTransparent, fg rgb:00/00/00, bg darkgray
#Colorset 10 fg #bfbfb1, RootTransparent buffer, bg #ececec
Colorset 10 fg #bfbfb1, bg #ececec
Colorset 18 fg black, bg #ececec
Colorset 19 fg #bfbfb1, bg #999999
Colorset 11 fg #38362e, bg #ececec
Colorset 12 fg #38362e, bg #e4e2d4
Colorset 13 fg #dfdfd1, RootTransparent buffer, bg #a4a499

----------------------------------------------------------------------

functions

----------------------------------------------------------------------

----------------------------------------------------------------------

testowe funcje testy

----------------------------------------------------------------------

----------------------------------------------------------------------

AddToFunc FuncFvwmMenuDirectory

  • I PipeRead “fvwm-menu-directory -d ‘$0’”

AddToMenu SomeMenu MissingSubmenuFunction FuncFvwmMenuDirectory

  • “Home Directory” Popup $[HOME]
  • “Wallpapers Directory” Popup $[fvwm_wallpapers]

----------------------------------------------------------------------

Key Less A M ThisWindow Next ("$[w.class]") WarpToWindow

----------------------------------------------------------------------

DestroyFunc FvwmExpose
AddToFunc FvwmExpose

  • I AddToMenu FvwmExposeMenu “.: e x p o s e :.” Title
  • I + DynamicPopDownAction DestroyMenu FvwmExposeMenu
  • I All (!Iconic,!Shaded,AcceptsFocus,CurrentDesk)
    PipeRead “echo Raise;
    xwd -silent -id $[w.id] | convert -scale 128 -quality 0 xwd:-
    png:$[FVWM_USERDIR]/icon.exp.$[w.id].png
    && echo AddToMenu FvwmExposeMenu
    %$[FVWM_USERDIR]/icon.exp.$[w.id].png%\’”$[w.name]"\’ WindowID $[w.id] WarpToWindow 50 50
    && echo AddToMenu FvwmExposeMenu \"\" Nop
    || Nop"
  • I Popup FvwmExposeMenu
  • I Exec exec rm -f $[FVWM_USERDIR]/icon.exp.*

----------------------------------------------------------------------

DestroyFunc DynamicMenu
AddToFunc DynamicMenu

  • I PipeRead “for files in $[FVWM_USERDIR]/$0/* ; do echo AddToMenu $0 basename $files Switch$0 basename $files ; done”

----------------------------------------------------------------------

AddToFunc FuncSetWallPaper

  • I Exec convert -scale $[desk.width]x$[desk.height] $0 $[fvwm_images]/tmp.png;
    composite -geometry +$(($[desk.width]/4))+$(($[desk.height]/4)) -dissolve 10 $[fvwm_images]/logo.png $[fvwm_images]/tmp.png $[fvwm_images]/lwallp.png;
    fvwm-root -r $[fvwm_images]/lwallp.png; fvwm-root -d

DestroyFunc MakeWallpaperMenu
AddToFunc MakeWallpaperMenu

  • I DestroyMenu recreate WallpaperMenu
  • I AddToMenu WallpaperMenu
  • I PipeRead ‘for i in $[fvwm_wallpapers]/*; do echo AddToMenu
    WallpaperMenu “basename $i” FuncSetWallPaper $i;
    done’

DestroyMenu WallpaperMenu
AddToMenu WallpaperMenu

  • DynamicPopupAction Function MakeWallpaperMenu

DestroyMenu RootMenu
AddToMenu RootMenu

  • “Wallpapers” Popup WallpaperMenu

----------------------------------------------------------------------

AddToFunc FuncFvwmMenuColorset

  • I DestroyMenu recreate FvwmMenuColorset
  • I PipeRead ‘echo “AddToMenu FvwmMenuColorset Colorsets Title”’
  • I PipeRead ‘echo + \“Reset\” Function ChangeStyle “1 fg white, bg #c06077”; echo \+ \"\" Nop’
  • I PipeRead ‘while read l; do echo +"${l/*bg /\ }" Function ChangeStyle “$l”; done < ~/.fvwm/colorsets’

DestroyFunc ToggleMount
AddToFunc ToggleMount

  • I PipeRead ‘mount $0 || umount $0’

ToggleMount /mnt/pendrive

----------------------------------------------------------------------

Basic Functions

----------------------------------------------------------------------

DestroyFunc WindowSewiResize
AddToFunc WindowLudoResize

  • M Resize direction SE

DestroyFunc ShowDesktop
AddToFunc ShowDesktop

  • I All (CurrentPage, Iconic, State 1) RestoreDesktop
  • I TestRc (Match) Break
  • I All (CurrentPage, !Iconic, !State 1) ThisWindow State 1 True
  • I All (CurrentPage, !Iconic, State 1) Iconify

DestroyFunc RestoreDesktop
AddToFunc RestoreDesktop

  • I All (CurrentPage, Iconic, State 1) Iconify off
  • I All (CurrentPage, State 1) ThisWindow State 1 False

DestroyFunc FvwmDeleteOrDestroy
AddToFunc FvwmDeleteOrDestroy

  • H Nop
  • M Nop
  • C Delete
  • D Destroy

DestroyFunc FvwmIconifyOrShade
AddToFunc FvwmIconifyOrShade

  • C Iconify
  • D WindowShade

DestroyFunc FvwmMaximize
AddToFunc FvwmMaximize

  • H Nop
  • M Nop
  • C Maximize $0 $1

DestroyFunc FvwmMoveOrIconify
AddToFunc FvwmMoveOrIconify

  • M Move
  • D Iconify

DestroyFunc FvwmWindowShade
AddToFunc FvwmWindowShade

  • D WindowShade $0

----------------------------------------------------------------------

Program Launching Functions

----------------------------------------------------------------------

DestroyFunc FvwmEditConfig
AddToFunc FvwmEditConfig

  • I Exec exec emacs -Q ~/.fvwm/config

DestroyFunc FvwmDf
AddToFunc FvwmDf

  • I Exec exec xterm -e “df -h; read”

#DestroyFunc FvwmReadConfig
#AddToFunc FvwmReadConfig
#+ I Read config

DestroyFunc FvwmEmacs
AddToFunc FvwmEmacs

  • I Exec exec emacs

DestroyFunc FvwmEmacsQ
AddToFunc FvwmEmacsQ

  • I Exec exec emacs -Q

DestroyFunc FvwmXTerm
AddToFunc FvwmXTerm

  • I Exec exec xterm

DestroyFunc FvwmATerm
AddToFunc FvwmATerm

  • I Exec exec aterm

DestroyFunc FvwmGimp
AddToFunc FvwmGimp

  • I Test (EnvMatch HOSTNAME cygwin) Exec exec gimp
  • I Test (EnvMatch HOSTNAME debian) Exec exec gimp_pl

DestroyFunc FvwmInkscape
AddToFunc FvwmInkscape

  • I Exec exec inkscape

DestroyFunc FvwmFireFox
AddToFunc FvwmFireFox

  • I Exec exec firefox

DestroyFunc FvwmIrssi
AddToFunc FvwmIrssi

  • I Exec exec aterm -e irssi

DestroyFunc FvwmViewManPage
AddToFunc FvwmViewManPage

  • I Exec exec xterm -fg White -bg DarkBlue -g 80x40 -fn 7x14 -fb 7x14bold
    -n “Manual Page - $0” -T “Manual Page - $0” -e man “$0”

----------------------------------------------------------------------

Startup Functions

----------------------------------------------------------------------

DestroyFunc StartFunction
AddToFunc StartFunction
#+ I Test (Init) Test (EnvMatch HOSTNAME cygwin) Exec exec fvwm-root -r background.png

  • I Test (Init) Test (EnvMatch HOSTNAME cygwin) Exec exec fvwm-root -r $[fvwm_wallpapers]/gentoo1272x969.png
  • I Test (Init) Test (EnvMatch HOSTNAME debian) Exec exec $[fvwm_root] gentoo.png
    #+ I Test (Init) Test (EnvMatch HOSTNAME debian) Read $[FVWM_USERDIR]/DebianMenu
  • I Test (Init) Test (EnvMatch HOSTNAME debian) Exec exec gkrellm
  • I Test (Init) Exec xterm
    #+ I Test (Init) Exec exec conky_en
    #+ I Module FvwmTaskBar
    #+ I Module FvwmPager 0 1
    #+ I Module FvwmButtons MyButtons
    #+ I Module FvwmIconMan
  • I Module FvwmButtons Launcher

DestroyFunc RestartFunction

AddToFunc RestartFunction

+ I Nop

----------------------------------------------------------------------

wallpaper browser

----------------------------------------------------------------------

----------------------------------------------------------------------

Screenshot Functions (uses ImageMagick)

----------------------------------------------------------------------

DestroyFunc FvwmWindowScreenshot
AddToFunc FvwmWindowScreenshot

  • I ThisWindow (!Shaded !Iconic Iconifiable)
    Exec import -window $[w.id] -quality 100 -silent
    “$[fvwm_screenshots]/screenshot-date +%Y%m%d-%H-%M-%S.$[w.id].jpg”

DestroyFunc FvwmDesktopScreenshot
AddToFunc FvwmDesktopScreenshot

  • I Exec sleep $0; import -window root -quality 100 -silent
    “$[fvwm_screenshots]/screenshot-date +%Y%m%d-%H-%M-%S.jpg”

----------------------------------------------------------------------

close all the windows of the same type

----------------------------------------------------------------------

DestroyFunc FuncCloseSameWinResource
AddToFunc FuncCloseSameWinResource

  • I All ($[w.resource]) Close

----------------------------------------------------------------------

autohide fvwmbuttons from faq 7.17

----------------------------------------------------------------------

DestroyFunc autohide
AddToFunc autohide

  • I ThisWindow ($0) Deschedule $[w.id]
  • I TestRc (!Match) Deschedule -$[w.id]
  • I ThisWindow ($0) KeepRc ThisWindow (shaded)
    autohide_show $1 $3
  • I TestRc (!Match) All ($0, !shaded) autohide_hide $2 $3

DestroyFunc autohide_show
AddToFunc autohide_show

  • I Schedule $0 -$[w.id] WindowShade $1 off
  • I Schedule $0 -$[w.id] Deschedule $[w.id]
  • I Schedule $0 -$[w.id] Deschedule -$[w.id]

DestroyFunc autohide_hide
AddToFunc autohide_hide

  • I Schedule $0 $[w.id] WindowShade $1 on
  • I Schedule $0 $[w.id] Deschedule $[w.id]
  • I Schedule $0 $[w.id] Deschedule -$[w.id]

AddToFunc StartFunction

  • I Module FvwmAuto 1 -menter enter_handler

DestroyFunc enter_handler
AddToFunc enter_handler
Test (EnvMatch HOSTNAME cygwin) + I autohide Launcher 250 2500 S
Test (EnvMatch HOSTNAME debian) + I autohide Launcher 250 500 S

^ ^ ^ ^

| | | |__ Shade direction (optional)

| | |______ Hide delay

| |__________ Show delay

|___________________ Unique window name/resource

DestroyFunc Fullscreen
AddToFunc Fullscreen

  • I ThisWindow (Maximized) Fullscreen-Stop
  • I TestRc (False) ThisWindow (!Maximized) Fullscreen-Start

DestroyFunc Fullscreen-Start
AddToFunc Fullscreen-Start

  • I WindowStyle !Title, !Borders, !Iconifiable, ResizeHintOverride
  • I UpdateStyles
  • I Maximize ewmhiwa 100 100
  • I WindowStyle !Maximizable, FixedSize, FixedPosition
  • I UpdateStyles

DestroyFunc Fullscreen-Stop
AddToFunc Fullscreen-Stop

  • I DestroyWindowStyle
  • I UpdateStyles
  • I ThisWindow (Maximized) Maximize

----------------------------------------------------------------------

----------------------------------------------------------------------

The window Ops menus exhibit a different HotKey style.

There are 2 versions of the WindowOps Menu, meant to be bound to different

things. Here is the “common” part:

DestroyFunc FuncFvwmWindowCommon
AddToFunc FuncFvwmWindowCommon

  • I AddToMenu $0 “$[gt.&Move]” Move
  • I AddToMenu $0 “$[gt.&Resize]” Resize
  • I AddToMenu $0 “$[gt.R&aise]” Raise
  • I AddToMenu $0 “$[gt.&Lower]” Lower
  • I AddToMenu $0 “$[gt.(De)&Iconify]” Iconify
  • I AddToMenu $0 “$[gt.(Un)&Stick]” Stick
  • I AddToMenu $0 “$[gt.(Un)Ma&ximize]” Maximize
  • I AddToMenu $0 “” Nop
  • I AddToMenu $0 “$[gt.&Delete]” Delete
  • I AddToMenu $0 “$[gt.&Close]” Close
  • I AddToMenu $0 “$[gt.Destroy]” Destroy
  • I AddToMenu $0 “” Nop

First windowops menu, bound to:

mouse 2 on root

Root menu

DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps “$[gt.Window Ops]” Title
FuncFvwmWindowCommon MenuFvwmWindowOps

  • “$[gt.Re&fresh Window]” RefreshWindow

Second windowops menu, bound to:

any mouse on titlebar button 1

mouse 2 on frame, side or titlebar

DestroyMenu MenuFvwmWindowOps2
AddToMenu MenuFvwmWindowOps2
FuncFvwmWindowCommon MenuFvwmWindowOps2

  • Scroll&Bar Module FvwmScroll 2 2
  • “&$[gt.Print]” FuncFvwmPrint
  • “$[gt.Print Re&verse]” FuncFvwmPrintReverse

----------------------------------------------------------------------

bindings for mouse and keys

----------------------------------------------------------------------

Key F1 A M Restart
Key F2 A M Exec exec gmrun
Key F3 A M Module FvwmConsole -terminal xterm
Key F4 A M Menu MenuFvwmRoot

Alt-F5: window when you can a program from console

Key F5 A M Menu FvwmRootMenu

Alt-F6: this give built in menu with hotkeys

Key F6 A M Menu FvwmProgramsMenu

Key F7 A M Menu FuncFvwmMenuColorset

#Key F8 A M Menu RootMenu
Key F8 A M Menu SomeMenu

BusyCursor DynamicMenu True

Key F9 A M ShowDesktop

Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L, CurrentAtEnd
Key Super_L A A FvwmATerm

----------------- mouse -------------------

Mouse button context modifier command

Contexts:

A - anywhere, R - root, T - titlebar,

W - window, S - window sides, F - corners,

[ ] - _ < ^ v > single sides or corners,

0-9 titlebar buttons like this: |1 3 5 7 9___titlebar___0 8 6 4 2|

e.g. FST anywhere in window except titlebar buttons

Modifiers:

A - any modifier, M - meta (Alt), N - no modifiers, C - ctrl, S - shift

Mouse 1 R A Menu FvwmRootMenu
Mouse 3 R A Menu FvwmWindowOpsMenu
Mouse 1 2 A FvwmDeleteOrDestroy
Mouse 1 6 A FvwmIconifyOrShade
Mouse 1 4 A FvwmMaximize 100 100
Mouse 2 4 A FvwmMaximize 0 100
Mouse 3 4 A FvwmMaximize 100 0
Mouse 1 W M FvwmMoveOrIconify
Mouse 1 I A FvwmMoveOrIconify
Mouse 4 T A FvwmWindowShade True
Mouse 5 T A FvwmWindowShade False

Mouse 3 T N Menu FvwmWindowOpsMenu

scrolling on title bar makes resizing shorter or longer window !!!

Mouse 4 T N Resize br w+0 w-5
Mouse 5 T N Resize br w+0 w+5
Mouse 4 T M Resize br w-5 w+0
Mouse 5 T M Resize br w+5 w+0

#Mouse 3 W M Function WindowSewiResize

----------------------------------------------------------------------

decors

----------------------------------------------------------------------

----------------------------------------------------------------------

Window Decor

----------------------------------------------------------------------

DestroyDecor MyDecor
AddToDecor MyDecor

  • TitleStyle LeftJustified Height 18
  • ButtonStyle 2 ActiveUp Vector 4 25x25@3 65x65@3 65x25@4 25x65@3 – Flat
  • ButtonStyle 2 ActiveDown Vector 4 25x25@3 65x65@3 65x25@4 25x65@3 – Flat
  • ButtonStyle 2 Inactive Vector 4 25x25@3 65x65@3 65x25@4 25x65@3 – Flat
  • ButtonStyle 6 ActiveUp Vector 5 25x65@3 65x65@3 65x55@3 25x55@3 25x65@3 – Flat
  • ButtonStyle 6 ActiveDown Vector 5 25x65@3 65x65@3 65x55@3 25x55@3 25x65@3 – Flat
  • ButtonStyle 6 Inactive Vector 5 25x65@3 65x65@3 65x55@3 25x55@3 25x65@3 – Flat
  • ButtonStyle 4 ActiveUp Vector 7 25x25@3 25x65@3 65x65@3 65x25@3 25x25@3 25x35@3 65x35@3 – Flat
  • ButtonStyle 4 ActiveDown Vector 7 25x25@3 25x65@3 65x65@3 65x25@3 25x25@3 25x35@3 65x35@3 – Flat
  • ButtonStyle 4 Inactive Vector 7 25x25@3 25x65@3 65x65@3 65x25@3 25x25@3 25x35@3 65x35@3 – Flat
  • TitleStyle – Flat
    #+ BorderStyle Simple – HiddenHandles Noinset
  • BorderStyle Simple – Noinset flat
  • ButtonStyle All – UseTitleStyle

----------------------------------------------------------------------

styles

----------------------------------------------------------------------

----------------------------------------------------------------------

Global Styles and options

----------------------------------------------------------------------

Style * TileCascadePlacement, GrabFocusOff
Style * NoPPosition, ResizeOpaque
Test (EnvMatch HOSTNAME debian) Style * SnapAttraction 5 SameType Screen
Test (EnvMatch HOSTNAME debian) Style * SnapGrid 3 3

Style * SmartPlacement, WindowShadeSteps 0, ResizeOutLine
Style * DecorateTransient, NoPPosition
#Style * IconBox 15 15 -1 1, SloppyFocus, MouseFocusClickRaises
Style * IconBox none
Style * SmartPlacement, WindowShadeSteps 20, ResizeOpaque
Style * NoIcon, NoIconTitle

Style * BorderWidth 1, HandleWidth 1

#Style * DecorateTransient, DontRaiseTransient
#Style * DontLowerTransient, StackTransientParent
#Style * GrabFocusTransientOff
Style * WindowShadeSteps 20, WindowShadeScrolls
Style * MwmDecor, SlipperyIcon
#Style * IconBox screen w 15 15 -165 -15, IconGrid 3 3, IconFill right top

----------------------------------------------------------------------

Program Styles

----------------------------------------------------------------------

Style “XTerm” Icon 48x48/terminal.png, NoActiveIconOverride, MiniIcon 16x16/terminal.png
Style “emacs” Icon 48x48/emacs.png, IconOverride, MiniIcon 16x16/emacs.png, EWMHMiniIconOverride
Style “Firefox-bin” Icon 48x48/firefox.png, MiniIcon 16x16/firefox.png, EWMHMiniIconOverride
Style “irssi” Icon 48x48/irc.png, MiniIcon 16x16/irc.png
Style “xmms” WindowListSkip, CirculateSkip
#Style “gkrellm” WindowListSkip

----------------------------------------------------------------------

Window Styles

----------------------------------------------------------------------

Style “*” UseDecor MyDecor

No icon when a window is iconified

Style * NoIcon
Style “" Font “xft:Sans:Bold:size=8:minspace=False:antialias=True”
Style "
” BorderWidth 1, HandleWidth 1
Style “" MWMBorder, FirmBorder
Style "
” Colorset 4
Style “" HilightColorset 3
Style "
” BorderColorset 5
Style “*” HilightBorderColorset 4

Focus-policy

Style * ClickToFocus

Style * FPGrabFocus

----------------------------------------------------------------------

menus

----------------------------------------------------------------------

----------------------------------------------------------------------

MenuStyles

----------------------------------------------------------------------

MenuStyle * PopupDelayed, PopupDelay 300, PopdownImmediately
MenuStyle * PopupOffset -5 100, TitleWarpOff
MenuStyle * TitleUnderlines2, SeparatorsShort, TrianglesSolid
MenuStyle * !Animation, AutomaticHotkeysOff
MenuStyle * BorderWidth 2
MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
MenuStyle * ItemFormat “%|%5.5i%1.3l%2.3>%|”

MenuStyle * VerticalItemSpacing 1 1

MenuStyle * VerticalTitleSpacing 2 2

MenuStyle * VerticalItemSpacing 3 3
MenuStyle * VerticalTitleSpacing 3 3
MenuStyle * MenuColorset 7
MenuStyle * ActiveFore, Hilight3DThin, HilightBack White
MenuStyle * ActiveColorset 8
MenuStyle * Font “Shadow=2:xft:Sans:Bold:size=11:antialias=True”

MenuStyle FvwmRootMenu AutomaticHotkeys

----------------------------------------------------------------------

DebianMenu

You can have a menu of most installed applications with Debian’s menu system.

sudo apt-get install menu

Then, to your ~/.fvwm/config add

Read /etc/X11/fvwm/DebianMenu

Now you have access to a menu of installed programs, automatically categorized and updated.

You can access this menu with the FVWM commands

Menu /Debian or

Popup /Debian

----------------------------------------------------------------------

DestroyFunc BuildDebianMenu
AddToFunc BuildDebianMenu

  • I Exec if [ -f “$[FVWM_USERDIR]/DebianMenu” ] then rm $[FVWM_USERDIR]/DebianMenu fi
  • I PipeRead ‘update-menus --menumethod $[fvwm_scripts]/fvwm_menu;
    cat $[FVWM_USERDIR]/DebianMenu’

----------------------------------------------------------------------

FvwmRootMenu

----------------------------------------------------------------------

DestroyMenu FvwmRootMenu
AddToMenu FvwmRootMenu “Root Menu [Alt-F5]” Title

  • “&Xterm%24x24/terminal.png%” FvwmXTerm
  • “&FireFox%24x24/firefox.png%” FvwmFireFox
  • “&Emacs%24x24/emacs.png%” FvwmEmacs
  • “&Gimp%24x24/gimp.png%” FvwmGimp
  • “&Inkscape%24x24/inkscape.png%” FvwmInkscape
  • “&mc%24x24/xterm.png%” Exec exec xterm -e mc
  • “” Nop
  • “&Programs%24x24/programs.png%” Popup FvwmProgramsMenu
    Test (EnvMatch HOSTNAME debian) + “&Debian programs%24x24/programs.png%” Popup DebianMenu
  • “” Nop
  • “&Restart FVWM [A-F1]%24x24/restart.png%” Restart
  • “E&dit fvwm config%24x24/edit_config.png%” FvwmEditConfig
    #+ “Source fvwmrc%24x24/reload.png%” Read config
  • “&Quit FVWM%24x24/quit4.png%” Quit
  • “” Nop
  • “Reboot%24x24/reboot3.png%” Exec exec sudo /sbin/reboot
  • “Halt%24x24/shutdown.png%” Exec exec sudo /sbin/halt

----------------------------------------------------------------------

Programs Menu

----------------------------------------------------------------------

DestroyMenu FvwmProgramsMenu
AddToMenu FvwmProgramsMenu “Programs [A-F6]” Title

  • “fotka%24x24/gthumb.png%” Exec exec fotka
  • “Gqview%24x24/gthumb.png%” Exec exec gqview
    Test (EnvMatch HOSTNAME debian) + “” Nop
    Test (EnvMatch HOSTNAME debian) + “deb update%24x24/down128.png%” Exec exec xterm -e sudo aptitude update
    Test (EnvMatch HOSTNAME debian) + “deb upgrade%24x24/gwget.png%” Exec exec xterm -e sudo “aptitude update; aptitude dist-upgrade”
  • “” Nop
    Test (EnvMatch HOSTNAME debian) + “wvdial%24x24/modem.png%” Exec exec xterm -e sudo wvdial
  • “df -sh%24x24/konsole2.png%” FvwmDf

this does not make sense since it do ‘du’ on ~/ directory and it takes time!

#+ “du -sh%24x24/konsole2.png%” Exec exec xterm -e “du -sh; read”

  • “octave%24x24/konsole2.png%” Exec exec xterm -e octave
  • “ipython%24x24/konsole2.png%” Exec exec xterm -e ipython
  • “ipython -py%24x24/konsole2.png%” Exec exec xterm -e “ipython -py”
    Test (EnvMatch HOSTNAME debian) + “updatedb%24x24/db_update.png%” Exec exec sudo updatedb
  • “FVWM Console%24x24/terminal.png%” Module FvwmConsole -terminal xterm
  • “” Nop
  • “Help%24x24/help.png%” Popup FvwmManPagesMenu
  • “Refresh%24x24/recycle.png%” Refresh
    Test (EnvMatch HOSTNAME debian) + “Build Deb menu%24x24/restart.png%” BuildDebianMenu

----------------------------------------------------------------------

FVWM Help Menu

----------------------------------------------------------------------

DestroyMenu FvwmManPagesMenu
AddToMenu FvwmManPagesMenu “FVWM Man Pages” Title

  • “%24x24/help.png%fvwm” FvwmViewManPage fvwm
  • “%24x24/help.png%FvwmAnimate” FvwmViewManPage FvwmAnimate
  • “%24x24/help.png%FvwmAuto” FvwmViewManPage FvwmAuto
  • “%24x24/help.png%FvwmBacker” FvwmViewManPage FvwmBacker
  • “%24x24/help.png%FvwmBanner” FvwmViewManPage FvwmBanner
  • “%24x24/help.png%FvwmButtons” FvwmViewManPage FvwmButtons
  • “%24x24/help.png%FvwmCommand” FvwmViewManPage FvwmCommand
  • “%24x24/help.png%FvwmConsole” FvwmViewManPage FvwmConsole
  • “%24x24/help.png%FvwmConsoleC.pl” FvwmViewManPage FvwmConsoleC.pl
  • “%24x24/help.png%FvwmCpp” FvwmViewManPage FvwmCpp
  • “%24x24/help.png%FvwmDebug” FvwmViewManPage FvwmDebug
  • “%24x24/help.png%FvwmDragWell” FvwmViewManPage FvwmDragWell
  • “%24x24/help.png%FvwmEvent” FvwmViewManPage FvwmEvent
  • “%24x24/help.png%FvwmForm” FvwmViewManPage FvwmForm
  • “%24x24/help.png%FvwmGtk” FvwmViewManPage FvwmGtk
  • “%24x24/help.png%FvwmGtkDebug” FvwmViewManPage FvwmGtkDebug
  • “%24x24/help.png%FvwmIconBox” FvwmViewManPage FvwmIconBox
  • “%24x24/help.png%FvwmIconMan” FvwmViewManPage FvwmIconMan
  • “%24x24/help.png%FvwmIdent” FvwmViewManPage FvwmIdent
  • “%24x24/help.png%FvwmM4” FvwmViewManPage FvwmM4
  • “%24x24/help.png%FvwmPager” FvwmViewManPage FvwmPager
  • “%24x24/help.png%FvwmPerl” FvwmViewManPage FvwmPerl
  • “%24x24/help.png%FvwmProxy” FvwmViewManPage FvwmProxy
  • “%24x24/help.png%FvwmRearrange” FvwmViewManPage FvwmRearrange
  • “%24x24/help.png%FvwmSave” FvwmViewManPage FvwmSave
  • “%24x24/help.png%FvwmSaveDesk” FvwmViewManPage FvwmSaveDesk
  • “%24x24/help.png%FvwmScript” FvwmViewManPage FvwmScript
  • “%24x24/help.png%FvwmScroll” FvwmViewManPage FvwmScroll
  • “%24x24/help.png%FvwmTaskBar” FvwmViewManPage FvwmTaskBar
  • “%24x24/help.png%FvwmTheme” FvwmViewManPage FvwmTheme
  • “%24x24/help.png%FvwmWharf” FvwmViewManPage FvwmWharf
  • “%24x24/help.png%FvwmWinList” FvwmViewManPage FvwmWinList
  • “%24x24/help.png%FvwmWindowMenu” FvwmViewManPage FvwmWindowMenu
  • “” Nop
  • “%24x24/help.png%fvwm-config” FvwmViewManPage fvwm-config
  • “%24x24/help.png%fvwm-perllib” FvwmViewManPage fvwm-perllib
  • “%24x24/help.png%fvwm-root” FvwmViewManPage fvwm-root
  • “%24x24/help.png%fvwm-bug” FvwmViewManPage fvwm-bug
  • “%24x24/help.png%fvwm-convert-2.2” FvwmViewManPage fvwm-convert-2.2
  • “%24x24/help.png%fvwm-convert-2.4” FvwmViewManPage fvwm-convert-2.4
  • “” Nop
  • “%24x24/help.png%fvwm-menu-desktop” FvwmViewManPage fvwm-menu-desktop
  • “%24x24/help.png%fvwm-menu-directory” FvwmViewManPage fvwm-menu-directory
  • “%24x24/help.png%fvwm-menu-headlines” FvwmViewManPage fvwm-menu-headlines
  • “%24x24/help.png%fvwm-menu-xlock” FvwmViewManPage fvwm-menu-xlock

----------------------------------------------------------------------

fvwm Window Operation Menu

----------------------------------------------------------------------

DestroyMenu FvwmWindowOpsMenu
AddToMenu FvwmWindowOpsMenu “Window Operations” Title

  • “%24x24/xterm.png%Window Screenshot” Pick (CirculateHit) FvwmWindowScreenshot
  • “%24x24/display.png%Desktop Screenshot (after 5s)” FvwmDesktopScreenshot 5
  • “” Nop
  • “Close%24x24/delete128.png%” Close
  • “Close Group%24x24/close128.png%” FuncCloseSameWinResource
  • “” Nop
  • “Identify%24x24/help_support128.png%” Module FvwmIdent

----------------------------------------------------------------------

modules

----------------------------------------------------------------------

----------------------------------------------------------------------

FvwmIdent

----------------------------------------------------------------------

DestroyModuleConfig FvwmIdent: *
*FvwmIdent: Colorset 9
*FvwmIdent: Font “xft:Sans:Arial:size=10:antialias=True”

----------------------------------------------------------------------

FvwmPager

----------------------------------------------------------------------

Style “FvwmPager” !Title, !Handles, Sticky, WindowListSkip,
CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DestroyModuleConfig FvwmPager: *
*FvwmPager: Colorset * 10
*FvwmPager: HilightColorset * 9
*FvwmPager: WindowColorsets 8 6
*FvwmPager: BalloonColorset * 10
*FvwmPager: Font none
*FvwmPager: SmallFont none
*FvwmPager: Balloons All
*FvwmPager: BalloonFont “xft:Arial:size=9”
*FvwmPager: BalloonYOffset +2
*FvwmPager: BalloonBorderWidth 1
*FvwmPager: UseSkipList
*FvwmPager: MoveThreshold 0
*FvwmPager: SolidSeparators
*FvwmPager: WindowBorderWidth 1

----------------------------------------------------------------------

MyButtons Panel - not useful

----------------------------------------------------------------------

Style “MyButtons” NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \

CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DestroyModuleConfig MyButtons: *

*MyButtons: Geometry 60x320-0+0

*MyButtons: Colorset 29

*MyButtons: Rows 28

*MyButtons: Columns 1

*MyButtons: Frame 0

*MyButtons: Font “Shadow=3:xft:Arial:Bold:pixelsize=14:minspace=True:antialias=True”

*MyButtons: (1x2, Frame 0, Title(Center) “FVWM”)

*MyButtons: (1x5, Frame 0, Icon 48x48/firefox.png, \

Action(Mosue 1) “FvwmFireFox”)

*MyButtons: (1x5, Frame 0, Icon 48x48/emacs.png, \

Action(Mouse 1) “FvwmEmacs”)

*MyButtons: (1x5, Frame 0, Icon 48x48/gimp.png, \

Action(Mouse 1) “FvwmGimp”)

*MyButtons: (1x5, Frame 0, Icon 48x48/inkscape.png, \

Action(Mouse 1) “FvwmInkscape”)

*MyButtons: (1x5, Frame 0, Icon 48x48/terminal.png, \

Action(Mouse 1) “FvwmXTerm”)

*MyButtons: (1x1, Frame 0)

----------------------------------------------------------------------

FvwmIconMan

----------------------------------------------------------------------

Style “FvwmIconMan” !Title, !Handles, !Borders, Sticky, WindowListSkip,
CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DestroyModuleConfig FvwmIconMan: *
*FvwmIconMan: NumManagers 1
*FvwmIconMan: ManagerGeometry 1x1
*FvwmIconMan: ButtonGeometry 32x32
#*FvwmIconMan: Tips always
#*FvwmIconMan: TipsFont “xft:Bitstream Vera Sans:style=Roman:size=10:antialias=True”
#*FvwmIconMan: TipsColorset 10
#*FvwmIconMan: TipsFormat “%t”
#*FvwmIconMan: TipsPlacement up
*FvwmIconMan: FocusAndSelectButton down
*FvwmIconMan: FocusButton down
*FvwmIconMan: IconButton down
*FvwmIconMan: PlainButton down
*FvwmIconMan: SelectButton down
*FvwmIconMan: MaxButtonWidth 200
*FvwmIconMan: Action Mouse 0 N sendcommand Nop
*FvwmIconMan: Action Mouse 2 N sendcommand Thumbnail
*FvwmIconMan: Action Mouse 1 N sendcommand “Iconify off”, sendcommand RaiseLower, sendcommand FlipFocus
#*FvwmIconMan: Action Mouse 3 N sendcommand “Popup MenuFvwmWindowOps XineramaRoot $leftp $topp-100m”
*FvwmIconMan: Action Mouse 3 N sendcommand “Popup FvwmWindowOpsMenu XineramaRoot $leftp $topp-100m”
*FvwmIconMan: Colorset 11
*FvwmIconMan: ReliefThickness 1
*FvwmIconMan: Font “xft:Arial:size=10”
*FvwmIconMan: FocusAndSelectColorset 16
*FvwmIconMan: FocusColorset 16
*FvwmIconMan: Resolution Page
*FvwmIconMan: DrawIcons Always
*FvwmIconMan: FollowFocus True
*FvwmIconMan: UseWinList True
*FvwmIconMan: ShowOnlyIcons False
*FvwmIconMan: ShowTransient True
*FvwmIconMan: Title “”
*FvwmIconMan: Format “%c: %i”
*FvwmIconMan: Sort id

----------------------------------------------------------------------

Launcher

----------------------------------------------------------------------

Style Launcher NoTitle, StaysOnTop, Sticky, WindowListSkip
Style Launcher CirculateSkip, CirculateSkipIcon, NeverFocus, FixedSize
Style Launcher NoHandles, FixedPosition, !Iconifiable, BorderWidth 1

DestroyModuleConfig Launcher: *
Test (EnvMatch HOSTNAME cygwin) *Launcher: Geometry 1272x32-0-0
Test (EnvMatch HOSTNAME debian) *Launcher: Geometry 1680x32-0-0
Test (EnvMatch HOSTNAME cygwin) *Launcher: Columns 38
Test (EnvMatch HOSTNAME debian) *Launcher: Columns 48
*Launcher: Rows 2
*Launcher: Frame 0
*Launcher: Colorset 11
*Launcher: Padding 0 0
*Launcher: BoxSize fixed
*Launcher: Font “xft:HandelGotD:size=9”
*Launcher: (1x2, Colorset 10, Icon 32x32/programs.png, Action (Mouse 1) Menu FvwmRootMenu)
*Launcher: (1x2, Colorset 10, Icon 32x32/xterm.png, Action (Mouse 1) FvwmXTerm)
*Launcher: (1x2, Colorset 10, Icon 32x32/emacs.png, Action (Mouse 1) FvwmEmacs)
*Launcher: (1x2, Colorset 10, Icon 32x32/iceweasel.png, Action (Mouse 1) FvwmFirefox)
*Launcher: (1x2, Colorset 10, Icon 32x32/gimp.png, Action (Mouse 1) FvwmGimp)
*Launcher: (1x2, Colorset 10, Icon 32x32/inkscape.png, Action (Mouse 1) FvwmInkscape)
*Launcher: (1x2, Colorset 10, Icon 32x32/desktop128.png, Action (Mouse 1) Function ShowDesktop)
*Launcher: (2x2, Colorset 10, Center, Frame 1, Swallow (NoClose, UseOld) FvwmPager ‘Module FvwmPager *’)
Test (EnvMatch HOSTNAME cygwin) *Launcher: (25x2, Colorset 10, Center, Frame 1, Swallow (NoClose) “FvwmIconMan” ‘Module FvwmIconMan’)
Test (EnvMatch HOSTNAME debian) *Launcher: (35x2, Colorset 10, Center, Frame 0, Swallow (Respawn, NoClose, UseOld) “FvwmIconMan” ‘Module FvwmIconMan’)
*Launcher: (2x2, Colorset 11, Center, Frame 0, Swallow (NoClose, UseOld) “stalonetray” ‘Exec exec stalonetray --no-shrink’)
*Launcher: (2x2, Colorset 11, Center, Frame 0, Swallow dclock ‘FvwmScript dclock 10’)[/code]