Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################################
- # ____________________________
- # ( _________________________)
- # ) (__ _ _ _ _
- # ( __)( \/ )( \/\/ )/\/\
- # ) ( \ / \ // \
- # (___) \/ \/\/(_/\/\_) 1.x / 2.6 / 3 hybrid config (Wyatt Ward)
- #
- #
- #
- # This config file is (largely) organized as follows:
- #
- # 1: Functions
- # 2: Styles
- # 3: Colorsets
- # 4: Menus
- # 5: Bindings
- # 6: Decor
- # 7: Modules
- # 8: Misc. Addendum
- #
- #################################
- # InfoStoreAdd can be used to store variable data internal to fvwm.
- # The variable can then be used in the configuration as $[infostore.name].
- #
- # You can also use environment variables but for data internal to fvwm
- # use InfoStore variables instead.
- #
- # The following is used in various menus and also sets the terminal
- # that FvwmConsole uses. Change this to your terminal of choice
- # InfoStoreAdd terminal x-terminal-emulator
- InfoStoreAdd terminal xterm
- ###########
- # 0: Move IgnoreModifiers before any possible "exec's"
- # Ignore Numlock and other modifiers for bindings
- # See http://fvwm.org/documentation/faq/#why-do-numlock-capslock-and-scrolllock-interfere-with-clicktofocus-andor-my-mouse-bindings
- IgnoreModifiers L25
- # Remove "UrgencyFunc" which raises windows automatically (XChat when getting a
- # name mention or other alert).
- DestroyFunc UrgencyFunc
- ###########
- # 1: Functions
- #
- # Fvwm can use custom functions for various tasks.
- # The syntax for defining a function named FunctionName is:
- #
- # DestroyFunc FunctionName
- # AddToFunc FunctionName
- # + I [Action to do Immediately]
- # + C [Action to do on a Mouse Click]
- # + D [Action to do on a Mouse Double Click]
- # + H [Action to do on a Mouse Hold]
- # + M [Action to do on a Mouse Motion]
- ###########
- # Start Function
- #
- # The start function is run right after fvwm is done reading
- # the config file. This function run after each restart
- # so using Test (Init) or Test (Restart) can further control
- # actions that are run during the first time run (Init) or
- # actions that are run after a restart.
- DestroyFunc StartFunction
- AddToFunc StartFunction
- #+ I Test (F $[FVWM_USERDIR]/.BGdefault) \
- + I Test (Init, f $[FVWM_USERDIR]/.BGdefault) \
- Exec exec /usr/bin/env hsetroot -tile $[FVWM_USERDIR]/.BGdefault
- + I TestRc (NoMatch) Exec exec /usr/bin/env hsetroot -tile \
- $[FVWM_DATADIR]/default-config/images/background/bg1.png
- + I Module FvwmEvent EventNewDesk
- # Enable FvwmCommand shell command (run server which creates an fifo)
- # FVWM2 only; use FvwmMFL for FVWM3
- # + I Module FvwmCommandS
- + I Module FvwmMFL
- + I Module FvwmButtons
- # Background wallpaper setup
- # (using hsetroot since xsetroot doesn't work well with my compositor (Compton)
- + I Exec exec /usr/bin/env hsetroot -tile $[FVWM_USERDIR]/.BGdefault
- # *FvwmButtons: (Title bright, Action (Mouse 1) `Exec exec /etc/acpi/actions/toggle-thinklight-or-tablet-lcd.sh` )
- # Start mcomix maximized
- DestroyModuleConfig FE-startMaximized: *
- *FE-startMaximized: Cmd Function
- *FE-startMaximized: add_window StartMaximized
- Module FvwmEvent FE-startMaximized
- # start mcomix and seamonkey (only browser windows, or 'navigator' resources)
- # maximized.
- DestroyFunc StartMaximized
- AddToFunc StartMaximized
- + I ThisWindow ("MComix", !Maximized) ToggleBordersMaximize
- + I ThisWindow ("MComix", Maximized) WindowStyle !Borders
- + I ThisWindow ("Navigator", Maximized) Maximize ewmhiwa # unmaximize
- + I ThisWindow ("Chromium", Maximized) Maximize ewmhiwa # unmaximize
- + I ThisWindow ("Glide64mk2") Maximize ewmhiwa
- + I ThisWindow ("Glide64mk2") WindowStyle !Title
- + I ThisWindow ("Glide64mk2") WindowStyle !Borders
- + I ThisWindow ("Krita") Maximize ewmhiwa
- + I ThisWindow ("Run a command") WindowStyle StaysOnTop
- + I ThisWindow ("Run a command") MoveToScreen
- + I ThisWindow ("Wyatt_RunDlg") WindowStyle StaysOnTop
- + I ThisWindow ("Wyatt_RunDlg") MoveToScreen
- + I ThisWindow ("GrafX2", !Maximized) ToggleBordersMaximize
- + I ThisWindow ("GrafX2", Maximized) WindowStyle !Borders
- + I UpdateStyles
- + I ThisWindow RefreshWindow # synchronize states
- + I ThisWindow ("Navigator") ToggleBordersMaximize
- + I ThisWindow ("Chromium") ToggleBordersMaximize
- # + I ThisWindow ("Krita") WindowStyle !Title
- # + I ThisWindow ("Krita") WindowStyle !Borders
- # Remove window borders when maximized (besides the titlebar)
- DestroyFunc ToggleBordersMaximize
- AddToFunc ToggleBordersMaximize
- # + I Current (Maximized) BorderMax
- + I Current (Maximized) WindowStyle Borders
- + I TestRc (NoMatch) WindowStyle !Borders
- + I UpdateStyles
- + I RefreshWindow
- + I Maximize ewmhiwa growonwindowlayer
- DestroyFunc ThisToggleBordersMaximize
- AddToFunc ThisToggleBordersMaximize
- # + I Current (Maximized) BorderMax
- + I ThisWindow (Maximized) WindowStyle Borders
- + I TestRc (NoMatch) WindowStyle !Borders
- + I UpdateStyles
- + I RefreshWindow
- + I Maximize ewmhiwa growonwindowlayer
- # + I Current (Maximized) WindowStyle !Borders
- DestroyFunc ToggleBorders
- AddToFunc ToggleBorders
- + I Current (State 2) WindowStyle Borders
- + I TestRc (Match) State 2 False
- + I TestRc (Match) Break
- + I Current WindowStyle !Borders
- + I State 2 True
- #+ I Current (HasHandles) WindowStyle !Borders
- #+ I TestRc (NoMatch) Current WindowStyle Borders
- #+ I UpdateStyles
- #+ I RefreshWindow
- ## + I Current (!HasHandles) WindowStyle Borders
- DestroyFunc ThisToggleBorders
- AddToFunc ThisToggleBorders
- + I ThisWindow (State 2) WindowStyle Borders
- + I TestRc (Match) State 2 False
- + I TestRc (Match) Break
- + I ThisWindow WindowStyle !Borders
- + I State 2 True
- # + I ThisWindow (HasHandles) WindowStyle Borders
- # + I TestRc (NoMatch) ThisWindow WindowStyle !Borders
- # + I UpdateStyles
- # + I RefreshWindow
- # # + I ThisWindow (!HasHandles) WindowStyle Borders
- # Instead of using the default (Layer 0 4), I also want windows that I make
- # to "stay put" stay visible but lose their "on top"-ness. So I need to raise
- # the window above others in the default layer after changing the layer of
- # said window.
- DestroyFunc StayPutFunc
- AddToFunc StayPutFunc
- + I Layer 0 4
- + I Raise
- # Toggle 'full screen'
- DestroyFunc FullScreenMax
- AddToFunc FullScreenMax
- + I Current (Maximized) WindowStyle Borders
- + I TestRc (NoMatch) WindowStyle !Borders
- + I Current (Maximized) WindowStyle Title
- + I TestRc (NoMatch) WindowStyle !Title
- + I UpdateStyles
- + I RefreshWindow
- + I Current (Maximizable) Maximize ewmhiwa
- DestroyFunc ThisFullScreenMax
- AddToFunc ThisFullScreenMax
- + I ThisWindow (Maximized) WindowStyle Borders
- + I TestRc (NoMatch) WindowStyle !Borders
- + I ThisWindow (Maximized) WindowStyle Title
- + I TestRc (NoMatch) WindowStyle !Title
- + I UpdateStyles
- + I RefreshWindow
- + I ThisWindow (Maximizable) Maximize ewmhiwa
- DestroyFunc UnMaxAddBorders
- AddToFunc UnMaxAddBorders
- + I WindowStyle Borders
- + I Maximize forget
- DestroyFunc UnMaxRemBorders
- AddToFunc UnMaxRemBorders
- + I WindowStyle !Borders
- + I Maximize forget
- # Mouse Bindings Functions
- DestroyFunc RaiseMoveX
- AddToFunc RaiseMoveX
- + I Raise
- + M Maximize forget
- + M WindowStyle Borders
- + M $0
- + D $1
- DestroyFunc RaiseMove
- AddToFunc RaiseMove
- + I Raise
- + M $0
- DestroyFunc MoveToCurrent
- AddToFunc MoveToCurrent
- + I ThisWindow MoveToPage
- + I ThisWindow MoveToDesk
- # Function: ViewManPage $0
- #
- # This function loads the man page $0 in an terminal
- # and is used with the help menu.
- DestroyFunc ViewManPage
- AddToFunc ViewManPage
- + I Exec exec uxterm -g 80x40 \
- -n "Manual Page - $0" -T "Manual Page - $0" -e man "$0"
- # Function: SetBG $0
- #
- # SetBG is used with the background menu to set the background
- # image and configure it to be loaded the next time fvwm is run.
- # Note, fvwm-root can't use .jpeg or resize images. Use something
- # like display, feh, etc.
- DestroyFunc SetBG
- AddToFunc SetBG
- + I Test (f $[FVWM_USERDIR]/images/background/$0) \
- Exec exec hsetroot -tile $[FVWM_USERDIR]/images/background/$0
- + I TestRc (Match) Exec exec ln -fs images/background/$0 \
- $[FVWM_USERDIR]/.BGdefault
- + I TestRc (Match) Break
- + I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break
- + I Exec exec hsetroot -tile $[FVWM_DATADIR]/default-config/images/background/$0
- # + I Exec exec fvwm-root $[FVWM_DATADIR]/default-config/images/background/$0
- + I Exec exec ln -fs $[FVWM_DATADIR]/default-config/images/background/$0 \
- $[FVWM_USERDIR]/.BGdefault
- # Version for 2560px screens that uses the hsetroot -extend option instead.
- # Obviously this is only good for one session, as currently set up.
- # So we don't update our symlink (for now).
- # I only need this mode when I'm faking a higher resolution on my
- # 1280x800 laptop (double resolution).
- DestroyFunc SetBGExtend
- AddToFunc SetBGExtend
- + I Test (f $[FVWM_USERDIR]/images/background/$0) \
- Exec exec hsetroot -extend $[FVWM_USERDIR]/images/background/$0
- + I TestRc (Match) Break
- + I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break
- + I Exec exec hsetroot -extend $[FVWM_DATADIR]/default-config/images/background/$0
- # + I Exec exec fvwm-root $[FVWM_DATADIR]/default-config/images/background/$0
- # Function: IconManClick#
- # This function is run from FvwmIconMan when the button is clicked.
- DestroyFunc IconManClick
- AddToFunc IconManClick
- + I ThisWindow (Raised, !Shaded, !Iconic, CurrentPage) Iconify
- + I TestRc (Match) Break
- + I ThisWindow WindowShade off
- + I ThisWindow Iconify off
- + I ThisWindow Raise
- + I ThisWindow (AcceptsFocus) FlipFocus
- # Function: ToggleTitle
- #
- # This function will toggle if fvwm shows the TitleBar.
- DestroyFunc ToggleTitle
- AddToFunc ToggleTitle
- + I ThisWindow (State 1) WindowStyle Title
- + I TestRc (Match) State 1 False
- + I TestRc (Match) Break
- + I WindowStyle !Title
- + I State 1 True
- # Function: ChangeDesk
- #
- # This function is called by FvwmEvent every time the Desk is changed.
- DestroyFunc ChangeDesk
- AddToFunc ChangeDesk
- + I SendToModule FvwmButtons ChangeButton desk0 Colorset 10
- + I SendToModule FvwmButtons ChangeButton desk1 Colorset 10
- + I SendToModule FvwmButtons ChangeButton desk2 Colorset 10
- + I SendToModule FvwmButtons ChangeButton desk3 Colorset 10
- + I SendToModule FvwmButtons ChangeButton desk$0 Colorset 11
- #############
- # 2: Styles #
- #############
- # Desktops and Pages
- #
- # Fvwm has both Virtual Desktops and Pages. Each Desktop is built from
- # a grid of Pages. The following sets the name of four Desktops and then
- # divides each Desktop into a 2x2 grid of Pages that are positioned as
- #
- # +---+---+
- # | | |
- # +---+---+
- # | | |
- # +---+---+
- #
- DesktopName 0 Main
- DesktopName 1 Desk1
- DesktopName 2 Desk2
- DesktopName 3 Desk3
- # DesktopSize 2x2
- DesktopSize 1x1
- # EdgeScroll will move the view port between the Pages when the mouse
- # moves to the edge of the screen. This set the amount of distance to
- # scroll at 100% (full page) and the EdgeResistance which is a timer
- # for how long the mouse as at the edge before it scrolls.
- #
- # Set EdgeScroll 0 0 and/or EdgeResistance -1 to disable.
- #EdgeScroll 100 100
- #EdgeResistance 450
- EdgeResistance -1
- #EdgeThickness 1
- EdgeThickness 0
- #xclock does not get a titlebar (use alt-shift-rightclick to set options and
- # alt-drag to move)
- # keep on current desk, no matter which desk is being viewed
- # No titlebar on the window
- # No borders on the window
- # Keep on top (alt-shift-rightclick to get in the menu to turn off)
- Style "xclock" Sticky, !Title, !Borders, StaysOnTop
- Style "XCal" Sticky, !Title, !Borders, StaysOnTop
- # tray - stalonetray
- Style "stalonetray" Sticky
- Style "stalonetray" !Borders
- Style "stalonetray" !Title
- #Style * EdgeMoveDelay 350, EdgeMoveResistance 350
- # EwmhBaseStruts [left] [right] [top] [bottom]
- # Reserves space along the edge(s) of the Screen that will not
- # be covered when maximizing or placing windows.
- # (margins)
- # EwmhBaseStruts 0 120 0 0
- # This sets the ClickTime and MoveThreshold used to determine
- # Double Clicks, Hold and Move for the mouse.
- ClickTime 250
- MoveThreshold 3
- # Sets the focus style to SloppyFocus and a mouse click
- # in a window will Raise it.
- Style * ClickToFocus, MouseFocusClickRaises
- # when a window is destroyed, focus the previous one automatically
- # from archwiki copypaste
- # DestroyFunc Focus-Previous
- # AddToFunc Focus-Previous
- # + I All ($0, Focused) FlipFocus $1
- # + I TestRc (NoMatch) Prev ($0, AcceptsFocus) FlipFocus $1
- # Wine needs this I think
- Style * Lenience
- #Style * Leniency
- # Default Font
- #DefaultFont "xft:Sans:Bold:size=8:antialias=True"
- # previously, size 12 worked for some reason. Now I need 11. (shrug)
- # DefaultFont "xft:IBM 3161:size=12:antialias=false"
- # tahoma
- #DefaultFont "xft:Tahoma:size=8:antialias=false,xft:MS UI Gothic:size=8:antialias=false"
- DefaultFont "xft:MS UI Gothic:size=8:antialias=false"
- # WindowFont "xft:Tahoma:size=8:bold:antialias=false"
- # WindowFont is the old deprecated syntax, switch to newer one
- # ugh, have to use ms ui gothic because tahoma won't work with cjk and FVWM won't fix itself
- Style * Font "StringEncoding=UTF-8:xft:MS UI Gothic:size=9:bold:antialias=false,xft:Tahoma:size=8:bold:antialias=false"
- #Style * Font "xft:Tahoma:size=8:bold:antialias=false","xft:MS UI Gothic:size=8:antialias=false"
- #Style * Font "xft:MS UI Gothic:size=8:antialias=false"
- Style WindoList
- # Window Placement
- # I like grabbing focus
- #Style * MinOverlapPlacement, GrabFocusOff, !UsePPosition
- #Style * MinOverlapPlacement, !UsePPosition
- # I also like gimp to work
- Style * MinOverlapPlacement
- # Sets all windows to OpaqueMove (vs a wired frame) and windows will
- # snap to each other and the edge of the screen.
- OpaqueMoveSize unlimited
- #Style * ResizeOpaque, SnapAttraction 15 SameType ScreenAll, SnapGrid
- Style * ResizeOpaque
- # Transient Windows (such as open file windows)
- Style * DecorateTransient, StackTransientParent
- #Style * !FPGrabFocusTransient, FPReleaseFocusTransient
- Style * FPGrabFocusTransient, FPReleaseFocusTransient
- # WindowShade
- Style * WindowShadeScrolls, WindowShadeSteps 10
- # Decor Styles
- #Style * BorderWidth 5, HandleWidth 5, MWMButtons, FvwmBorder, FirmBorder
- Style * BorderWidth 5, HandleWidth 5, MWMButtons, MwmBorder, MwmDecor, MwmFunctions
- *Style * Colorset 1, HilightColorset 2
- # Disable Icons from appearing on desktop.
- # Comment this out or use Style * Icon to get the icons back.
- # Style * !Icon
- # Window Specific Styles
- # Style RightPanel !Title, !Borders, !Handles, Sticky, \
- # WindowListSkip, NeverFocus
- Style ConfirmQuit !Title, PositionPlacement Center, WindowListSkip, Layer 6
- # Style FvwmIdent WindowListSkip
- Style FvwmButtons !Title, !Borders, !Handles, Sticky, \
- WindowListSkip, NeverFocus
- #######
- # 3: Colorsets
- #
- # Colorsets can be used to configure the color of the various
- # parts of fvwm such as window decor, menus, modules, etc.
- #
- # Colorset Convention
- #
- # 0 - Default
- # 1 - Inactive Windows
- # 2 - Active Window
- # 3 - Inactive Windows Borders
- # 4 - Active Windows Borders
- # 5 - Menu - Inactive Item
- # 6 - Menu - Active Item
- # 7 - Menu - Grayed Item
- # 8 - Menu - Title
- # 9 - Reserved
- # 10+ Modules
- # 10 - Module Default
- # 11 - Module Hilight
- # 12 - Module ActiveButton (Mouse Hover)
- # 13 - FvwmPager Active Page
- # 14 - FvwmIconMan Iconified Button
- ###########
- Colorset 0 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
- Colorset 1 fg #000000, bg #b0b4c4, hi, sh, Plain, NoShape
- #Colorset 2 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
- # pink background for CDE-like crimson theme window borders:
- # Colorset 2 fg #ffffff, bg #b44c7b, hi, sh, Plain, NoShape
- # a nice bluish-purple background for custom window borders (used for a long time, until august 2020)
- #Colorset 2 fg #ffffff, bg #574cb4, hi, sh, Plain, NoShape
- # darker blue
- Colorset 2 fg #ffffff, bg #35476b, hi, sh, Plain, NoShape
- # middling blue
- # Colorset 2 fg #ffffff, bg #3f5580, hi, sh, Plain, NoShape
- # relaxing blue background for custom window borders
- # Colorset 2 fg #ffffff, bg #4c70b4, hi, sh, Plain, NoShape
- # darker, purplish-blueish-gray. Very nice for a dark desktop.
- # Colorset 2 fg #ffffff, bg #4a4b70, hi, sh, Plain, NoShape
- # another dark blue, but pretty much no purple tint.
- # Colorset 2 fg #ffffff, bg #4a5b70, hi, sh, Plain, NoShape
- # boring gray. Good for not distracting the user
- # Colorset 2 fg #606060, bg #101010, hi, sh, Plain, NoShape
- Colorset 3 fg black, bg #4d4d4d, hi #676767, sh #303030, Plain, NoShape
- Colorset 4 fg black, bg #2d2d2d, hi #474747, sh #101010, Plain, NoShape
- Colorset 5 fg #000000, bg #ffffff, hi, sh, Plain, NoShape
- Colorset 6 fg #ffffff, bg #2d2d2d, hi, sh, Plain, NoShape
- Colorset 7 fg grey30, bg #ffffff, hi, sh, Plain, NoShape
- Colorset 8 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
- Colorset 10 fg #ffffff, bg #003c3c, hi #aaaaaa, sh #999999, Plain, NoShape
- Colorset 11 fg #ffffff, bg #1a6e99, hi #ffffff, sh #ffffff, Plain, NoShape
- Colorset 12 fg #2d2d2d, bg #ffffff, hi, sh, Plain, NoShape
- Colorset 13 fg #ffffff, bg #006c6c, hi, sh, Plain, NoShape
- Colorset 14 fg #555555, bg #003c3c, hi #aaaaaa, sh #999999, Plain, NoShape
- # Used by MComix titlebars (see bottom, near the "Emulate Mwm" command)
- Colorset 15 fg #898989, bg #131313, hi, sh, Plain, NoShape
- # dolphin-emu
- Colorset 16 fg #606060, bg #101010, hi, sh, Plain, NoShape
- # icon backgrounds
- Colorset 17 fg #b0b0b0, bg #565861, hi, sh, Plain, NoShape
- #######
- # 4: Menus
- ###########
- #MenuStyle * MenuColorset 5, ActiveColorset 6, GreyedColorset 7, TitleColorset 8
- #MenuStyle * Hilight3DOff, HilightBack, HilightTitleBack, SeparatorsLong
- #MenuStyle * TrianglesSolid, TrianglesUseFore
- #MenuStyle * ItemFormat "%|%3.1i%5.3l%5.3>%|"
- MenuStyle * Mwm
- # MenuStyle * Font "xft:Sans:Bold:size=8:antialias=True"
- # tahoma
- MenuStyle * Font "xft:Microsoft Sans Serif:Regular:size=8:antialias=False,xft:MS UI Gothic:size=8:antialias=false"
- # CJK works
- #MenuStyle * Font "StringEncoding=UTF-8:xft:Hiragino Maru Gothic Pro:hinting=slight:size=9:antialias=false,xft:Tahoma:size=8:antialias=false"
- # MenuStyle * Font "-adobe-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*"
- # Root Menu
- #
- # The root menu will PopUp with a click in the root
- # window or using alt-f1 (or menu).
- ImagePath +:$HOME/.fvwm/images/icons
- ImagePath +:$HOME/.fvwm/images
- DestroyMenu MenuFvwmRoot
- AddToMenu MenuFvwmRoot "Fvwm" Title
- + "&Programs%icons/programs.png%" Popup MenuPrograms
- + "XDG &Menu%icons/apps.png%" Popup XDGMenu
- + "&XTerm%icons/terminal.png%" Exec exec mate-terminal
- + "" Nop
- # + "Fvwm&Console%icons/terminal.png%" Module FvwmConsole -terminal uxterm
- + "Fvwm&Console%icons/terminal.png%" Exec exec mate-terminal -e /usr/bin/FvwmPrompt
- + "Put Windows &On Screen%icons/windowcascade.png%" All MoveToScreen
- + "&Wallpapers%icons/wallpaper.png%" Popup BGMenu
- + "Go To Desk" Popup MenuGoTo
- # + "Copy Config%icons/conf.png%" FvwmScript FvwmScript-ConfirmCopyConfig
- + "" Nop
- + "M&an Pages%icons/help.png%" Popup MenuFvwmManPages
- + "Re&fresh%icons/refresh.png%" Refresh
- + "&Restart FVWM%icons/restart.png%" Restart
- + "&Exit CDE%icons/quit.png%" Exec exec /usr/dt/bin/dtaction ExitSession
- + "&Quit%icons/quit.png%" Module FvwmScript FvwmScript-ConfirmQuit
- # Generate XDGMenu
- PipeRead "fvwm-menu-desktop -e"
- # Programs Menu
- #
- # This test for some common programs and adds them to the menu.
- # When adding programs you don't need to use the Test (x foo)
- # lines as this is only to help make this menu portable.
- DestroyMenu MenuPrograms
- AddToMenu MenuPrograms "Programs" Title
- Test (x seamonkey) + "Seamonkey" Exec exec seamonkey
- Test (x chromium) + "Chromium" Exec exec chromium
- Test (x firefox) + "Firefox" Exec exec firefox
- Test (x google-chrome) + "Google-Chrome" Exec exec google-chrome
- Test (x gvim) + "gVim" Exec exec gvim
- Test (x xemacs) + "XEmacs" Exec exec xemacs
- Test (x gimp) + "Gimp" Exec exec gimp
- Test (x vlc) + "VLC" Exec exec vlc
- # Go To menu
- #
- # Go to desktop
- DestroyMenu MenuGoTo
- AddToMenu MenuGoTo
- + "Previous" GotoDesk -1 0 3
- + "Next" GotoDesk 1 0 3
- + "" Nop
- + "Desk 0" GotoDesk 0 0
- + "Desk 1" GotoDesk 0 1
- + "Desk 2" GotoDesk 0 2
- + "Desk 3" GotoDesk 0 3
- # Background Menu
- #
- # Backgrounds are located in ~/.fvwm/images/background/
- # Menu icons are located in ~/.fvwm/images/bgicons/
- ImagePath +:$HOME/.fvwm/images/background
- DestroyMenu BGEV1280
- AddToMenu BGEV1280
- + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "1280/eeveelution_black_1280.png"
- + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "1280/eeveelution_white_1280.png"
- + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "1280/eeveelution_brick_red_1280.png"
- + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "1280/eeveelution_brown_1280.png"
- + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "1280/eeveelution_burgundy_1280.png"
- + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "1280/eeveelution_deep_red_1280.png"
- + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "1280/eeveelution_evergreen_1280.png"
- + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "1280/eeveelution_gray_1280.png"
- + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "1280/eeveelution_indigo_1280.png"
- + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "1280/eeveelution_rich-green_1280.png"
- + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "1280/eeveelution_regal_1280.png"
- + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "1280/eeveelution_purple_1280.png"
- + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "1280/eeveelution_sensible_blue_1280.png"
- + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "1280/eeveelution_teal_1280.png"
- + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "1280/eeveelution_wintergreen_1280.png"
- DestroyMenu BGEV1440
- AddToMenu BGEV1440
- + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "1440/eeveelution_black_1440.png"
- + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "1440/eeveelution_white_1440.png"
- + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "1440/eeveelution_brick_red_1440.png"
- + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "1440/eeveelution_brown_1440.png"
- + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "1440/eeveelution_burgundy_1440.png"
- + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "1440/eeveelution_deep_red_1440.png"
- + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "1440/eeveelution_evergreen_1440.png"
- + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "1440/eeveelution_gray_1440.png"
- + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "1440/eeveelution_indigo_1440.png"
- + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "1440/eeveelution_rich-green_1440.png"
- + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "1440/eeveelution_regal_1440.png"
- + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "1440/eeveelution_purple_1440.png"
- + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "1440/eeveelution_sensible_blue_1440.png"
- + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "1440/eeveelution_teal_1440.png"
- + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "1440/eeveelution_wintergreen_1440.png"
- DestroyMenu BGEV1920
- AddToMenu BGEV1920
- + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "1920/eeveelution_black_1920.png"
- + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "1920/eeveelution_white_1920.png"
- + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "1920/eeveelution_brick_red_1920.png"
- + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "1920/eeveelution_brown_1920.png"
- + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "1920/eeveelution_burgundy_1920.png"
- + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "1920/eeveelution_deep_red_1920.png"
- + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "1920/eeveelution_evergreen_1920.png"
- + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "1920/eeveelution_gray_1920.png"
- + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "1920/eeveelution_indigo_1920.png"
- + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "1920/eeveelution_rich-green_1920.png"
- + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "1920/eeveelution_regal_1920.png"
- + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "1920/eeveelution_purple_1920.png"
- + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "1920/eeveelution_sensible_blue_1920.png"
- + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "1920/eeveelution_teal_1920.png"
- + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "1920/eeveelution_wintergreen_1920.png"
- DestroyMenu BGEV2560
- AddToMenu BGEV2560
- + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBGExtend "full/eeveelution_black_full.png"
- + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBGExtend "full/eeveelution_white_full.png"
- + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBGExtend "full/eeveelution_brick_red_full.png"
- + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBGExtend "full/eeveelution_brown_full.png"
- + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBGExtend "full/eeveelution_burgundy_full.png"
- + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBGExtend "full/eeveelution_deep_red_full.png"
- + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBGExtend "full/eeveelution_evergreen_full.png"
- + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBGExtend "full/eeveelution_gray_full.png"
- + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBGExtend "full/eeveelution_indigo_full.png"
- + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBGExtend "full/eeveelution_rich-green_full.png"
- + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "full/eeveelution_regal_full.png"
- + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBGExtend "full/eeveelution_purple_full.png"
- + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBGExtend "full/eeveelution_sensible_blue_full.png"
- + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBGExtend "full/eeveelution_teal_full.png"
- + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBGExtend "full/eeveelution_wintergreen_full.png"
- DestroyMenu BGEVDual
- AddToMenu BGEVDual
- + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "dual/eeveelution_teal_dualmonitor.png"
- DestroyMenu SolidColors
- AddToMenu SolidColors
- + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "bgicons/eeveelution/eeveelution_color_black.png"
- + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "bgicons/eeveelution/eeveelution_color_white.png"
- + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "bgicons/eeveelution/eeveelution_color_brick_red.png"
- + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "bgicons/eeveelution/eeveelution_color_brown.png"
- + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "bgicons/eeveelution/eeveelution_color_burgundy.png"
- + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "bgicons/eeveelution/eeveelution_color_deep_red.png"
- + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "bgicons/eeveelution/eeveelution_color_evergreen.png"
- + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "bgicons/eeveelution/eeveelution_color_gray.png"
- + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "bgicons/eeveelution/eeveelution_color_indigo.png"
- + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "bgicons/eeveelution/eeveelution_color_regal.png"
- + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "bgicons/eeveelution/eeveelution_color_rich-green.png"
- + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "bgicons/eeveelution/eeveelution_color_purple.png"
- + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "bgicons/eeveelution/eeveelution_color_sensible_blue.png"
- + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "bgicons/eeveelution/eeveelution_color_teal.png"
- + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "bgicons/eeveelution/eeveelution_color_wintergreen.png"
- DestroyMenu BG1280
- AddToMenu BG1280
- + "Eeveelution" Popup BGEV1280
- + "Bliss" SetBG "bliss1280x800.png"
- + "Phantasy" SetBG "1280/phantasy_1280.jpg"
- + "Missile Command" SetBG "1280/missile_command.png"
- + "PhantasyII" SetBG "1280/phantasy2_1280.png"
- + "Nei" SetBG "1280/ps2_nei_orig_artist_wallpaper6.png"
- + "Nei (Calib)" SetBG "1280/ps2_nei_orig_artist_wallpaper6_calib.png"
- + "Nei2" SetBG "1280/ps2_nei_orig_artist_wallpaper7.png"
- + "Nei2 (Calib)" SetBG "1280/ps2_nei_orig_artist_wallpaper7_calib.png"
- + "HeartGold" SetBG "1280/HeartGold_1280.png"
- + "SoulSilver" SetBG "1280/SoulSilver_1280.png"
- DestroyMenu BG1440
- AddToMenu BG1440
- + "Eeveelution" Popup BGEV1440
- + "Phantasy" SetBG "1440/phantasy_1440.jpg"
- + "Nei" SetBG "1440/ps2_nei_orig_artist_wallpaper6.png"
- + "Nei (Calib)" SetBG "1440/ps2_nei_orig_artist_wallpaper6_calib.png"
- + "Nei2" SetBG "1440/ps2_nei_orig_artist_wallpaper7.png"
- + "Nei2 (Calib)" SetBG "1440/ps2_nei_orig_artist_wallpaper7_calib.png"
- DestroyMenu BG1920
- AddToMenu BG1920
- + "Eeveelution" Popup BGEV1920
- + "Bliss1200" SetBG bliss1920x1200.png
- + "Phantasy" SetBG "1920/phantasy_1920.jpg"
- + "Nei" SetBG "1920/ps2_nei_orig_artist_wallpaper6.png"
- + "Nei (Calib)" SetBG "1920/ps2_nei_orig_artist_wallpaper6_calib.png"
- + "Nei2" SetBG "1920/ps2_nei_orig_artist_wallpaper7.png"
- + "Nei2 (Calib)" SetBG "1920/ps2_nei_orig_artist_wallpaper7_calib.png"
- + "Nei2 Bright (Calib)" SetBG "1920/ps2_nei_orig_artist_wallpaper7_bright_calib.png"
- + "HeartGold" SetBG "1920/HeartGold_1920.png"
- + "SoulSilver" SetBG "1920/SoulSilver_1920.png"
- DestroyMenu BG2560
- AddToMenu BG2560
- + "Eeveelution" Popup BGEV2560
- + "Phantasy" SetBG "2560/phantasy_1920.jpg"
- DestroyMenu BGDual
- AddToMenu BGDual
- + "Eeveelution" Popup BGEVDual
- + "Bliss1550" SetBG bliss3200x1550.png
- DestroyMenu BGMenu
- AddToMenu BGMenu "Wallpapers" Title
- + "1280%icons/wallpaper.png%" Popup BG1280
- + "1440%icons/wallpaper.png%" Popup BG1440
- + "1920%icons/wallpaper.png%" Popup BG1920
- + "2560%icons/wallpaper.png%" Popup BG2560
- + "Solid Colors%icons/wallpaper.png%" Popup SolidColors
- + "Dual-Screen%icons/wallpaper.png%" Popup BGDual
- + "Paver%bgicons/Paver.png%" SetBG "Paver.png"
- + "Paver (green)%bgicons/Paver_green.png%" SetBG "Paver_green.png"
- + "Toronto%bgicons/Toronto.png%" SetBG "Toronto.png"
- + "Toronto2%bgicons/Toronto2.png%" SetBG "Toronto2.png"
- + "Floral%bgicons/bg1.png%" SetBG bg1.png
- + "Circles%bgicons/bg2.png%" SetBG bg2.png
- + "Space%bgicons/bg3.png%" SetBG bg3.png
- + "Solid Black%bgicons/black.png%" SetBG black.png
- # Window Operations Menus
- # + "Maximize" Maximize ewmhiwa
- DestroyMenu MenuWindowOps
- AddToMenu MenuWindowOps
- + "Move" Move
- + "Move (0,0)" Current Move 0p 0p
- + "Resize" Resize
- + "Iconify" Iconify
- + "Maximize" ThisToggleBordersMaximize
- + "Fullscreen" ThisFullScreenMax
- + "Borders" ThisToggleBorders
- + "Shade" WindowShade
- + "Stick" Stick
- + "" Nop
- + "Close" Close
- + "More..." Menu MenuWindowOpsLong This 0 0
- #+ "(Un)Maximize" Maximize ewmhiwa
- DestroyMenu MenuWindowOpsLong
- AddToMenu MenuWindowOpsLong
- + "Move" Move
- + "Move (0,0)" Current Move 0p 0p
- + "Resize" Resize
- + "(De)Iconify" Iconify
- + "(Un)Maximize" ThisToggleBordersMaximize
- + "(Un)Fullscreen" ThisFullScreenMax
- + "(Un)Borderify" ThisToggleBorders
- + "(Un)Shade" WindowShade
- + "(Un)Sticky" Stick
- + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
- + "Send To" Popup MenuSendTo
- + "" Nop
- + "Close" Close
- + "Destroy" Destroy
- + "" Nop
- + "Raise" Raise
- + "Lower" Lower
- + "" Nop
- + "StaysOnTop" Pick (CirculateHit) Layer 0 6
- + "StaysPut" Pick (CirculateHit) StayPutFunc
- + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
- + "" Nop
- + "Identify" Module FvwmIdent
- #+ "StaysPut" Pick (CirculateHit) Layer 0 4
- #+ "(Un)Maximize" Maximize ewmhiwa
- DestroyMenu MenuIconOps
- AddToMenu MenuIconOps
- + "(De)Iconify" Iconify
- + "(Un)Maximize" ToggleBordersMaximize
- + "(Un)Shade" WindowShade
- + "(Un)Sticky" Stick
- + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
- + "Send To" Popup MenuSendTo
- + "" Nop
- + "Close" Close
- + "Destroy" Destroy
- + "" Nop
- + "Raise" Raise
- + "Lower" Lower
- + "" Nop
- + "StaysOnTop" Pick (CirculateHit) Layer 0 6
- + "StaysPut" Pick (CirculateHit) StayPutFunc
- + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
- + "" Nop
- + "Identify" Module FvwmIdent
- DestroyMenu MenuSendTo
- AddToMenu MenuSendTo
- + "Current" MoveToCurrent
- + "Page" PopUp MenuSendToPage
- + "Desk" PopUp MenuSendToDesk
- DestroyMenu MenuSendToDesk
- AddToMenu MenuSendToDesk
- + "Desk 0" MoveToDesk 0 0
- + "Desk 1" MoveToDesk 0 1
- + "Desk 2" MoveToDesk 0 2
- + "Desk 3" MoveToDesk 0 3
- DestroyMenu MenuSendToPage
- AddToMenu MenuSendToPage
- + "Page (0,0)" MoveToPage 0 0
- + "Page (0,1)" MoveToPage 0 1
- + "Page (1,0)" MoveToPage 1 0
- + "Page (1,1)" MoveToPage 1 1
- # Fvwm Man Pages (Help) Menu
- DestroyMenu MenuFvwmManPages
- AddToMenu MenuFvwmManPages "Help" Title
- + "fvwm" ViewManPage fvwm
- + "FvwmAnimate" ViewManPage FvwmAnimate
- + "FvwmAuto" ViewManPage FvwmAuto
- + "FvwmBacker" ViewManPage FvwmBacker
- + "FvwmBanner" ViewManPage FvwmBanner
- + "FvwmButtons" ViewManPage FvwmButtons
- + "FvwmCommand" ViewManPage FvwmCommand
- + "FvwmConsole" ViewManPage FvwmConsole
- + "FvwmEvent" ViewManPage FvwmEvent
- + "FvwmForm" ViewManPage FvwmForm
- + "FvwmIconMan" ViewManPage FvwmIconMan
- + "FvwmIdent" ViewManPage FvwmIdent
- + "FvwmPager" ViewManPage FvwmPager
- + "FvwmPerl" ViewManPage FvwmPerl
- + "FvwmProxy" ViewManPage FvwmProxy
- + "FvwmRearrange" ViewManPage FvwmRearrange
- + "FvwmScript" ViewManPage FvwmScript
- + "" Nop
- + "fvwm-root" ViewManPage fvwm-root
- + "fvwm-menu-desktop" ViewManPage fvwm-menu-desktop
- + "fvwm-menu-directory" ViewManPage fvwm-menu-directory
- + "fvwm-menu-headlines" ViewManPage fvwm-menu-headlines
- + "fvwm-menu-xlock" ViewManPage fvwm-menu-xlock
- + "fvwm-config" ViewManPage fvwm-config
- #######
- # 5: Mouse and Key bindings
- #
- # Contexts:
- # R = Root Window rrrrrrrrrrrrrrrrrrrrrr
- # W = Application Window rIrrrr<---------^rrrrr
- # F = Frame Corners rrrrrr[13TTTT642]rrrrr
- # S = Frame Sides rIrrrr[wwwwwwwww]rrrrr
- # T = Title Bar rrrrrr[wwwwwwwww]rrrrr
- # I = Icon rIrrrrv_________>rrrrr
- # rrrrrrrrrrrrrrrrrrrrrr
- #
- # Numbers are buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
- #
- # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
- #
- # Format: Key <X> <Context> <Modifier> <Action>
- # Mouse <X> <Context> <Modifier> <Action>
- ####################
- # Alt-F1 or Menu to load the root menu and Alt-Tab for a WindowList.
- # Ctrl-F1/F2/F3/F4 will switch between the Virtual Desktops.
- # Super_R (windows key) will launch a terminal.
- #
- # Silent supresses any errors (such as keyboards with no Menu key).
- Silent Key F1 A M Menu MenuFvwmRoot
- #Silent Key Menu A A Menu MenuFvwmRoot
- # Silent Key XF86RotateWindows A N Exec exec /home/user/bin/rotate-cycle normal
- # Silent Key XF86TaskPane A N Exec exec /home/user/bin/rotate-cycle invert
- # Menu key is compose key
- # F13, sent from xdotool as a hack/workaround since fvwmcommand is gone now
- # in fvwm3
- Silent Key 3270_FieldMark A N WindowList Root c c CurrentDesk
- Silent Key Tab A M WindowList Root c c CurrentDesk, SelectOnRelease Meta_L
- # For fvwm3, since fvwmcommand doesn't work anymore.
- # Made my applet send alt+shift+tab as well.
- # Silent Key Tab A SM WindowList Root c c CurrentDesk, SelectOnRelease
- # Edit: FVWM3 release 1.0.0 has FvwmPrompt; problem solved.
- Silent Key F1 A C GotoDesk 0 0
- Silent Key F2 A C GotoDesk 0 1
- Silent Key F3 A C GotoDesk 0 2
- Silent Key F4 A C GotoDesk 0 3
- Silent Key F13 A A
- # Silent Key Super_R A A Exec exec mate-terminal
- # ctrl+alt+arrowkey to cycle through desks
- # replace 'C' with 'A' (anything) to make it "alt+arrowkey" instead
- Silent Key Left A CM GotoDesk -1 0 0 3
- Silent Key Right A CM GotoDesk +1 0 0 3
- # ctrl+alt+upArrow to bump brightness up
- Silent Key Up A CM Exec exec $HOME/bin/brightup_acpi
- # ctrl+alt+downArrow to bump brightness down
- Silent Key Down A CM Exec exec $HOME/bin/brightdown_acpi
- # ctrl+super+up and ctrl+super+down
- Silent Key Up A C4 Exec exec $HOME/bin/brightup_acpi
- Silent Key Down A C4 Exec exec $HOME/bin/brightdown_acpi
- # u2412m external brightness up/down on ctrl+alt+I and ctrl+alt+K
- Silent Key 'i' A CM Exec exec $HOME/bin/u2412m_brightup
- Silent Key 'k' A CM Exec exec $HOME/bin/u2412m_brightdown
- # toggle LCD
- Silent Key XF86Launch1 A S Exec exec $HOME/bin/toggle-lcd
- # lcdoff
- Silent Key XF86Launch1 A C Exec exec $HOME/bin/lcdoff
- Silent Key XF86Launch1 A M Exec exec $HOME/bin/lcdon
- # fullscreen - hide window borders, hide title bar, and then maximize.
- # the same shortcut 'un-toggles' it.
- # ctrl-alt-g
- #Silent Key g A CM FullScreenMax
- # ctrl-alt-8
- Silent Key 8 A CM FullScreenMax
- Silent Key 2 A CM Exec exec halfWindowSize
- Silent Key 4 A CM Exec exec doubleWindowSize
- Silent Key 3 A CM Exec exec window.3x
- Silent Key 5 A CM Exec exec window3x
- # hide window (with my special script which uses xdotool)
- # ctrl-alt-h
- Silent Key h A CM Exec exec $HOME/bin/hidewindow.sh
- # restart fvwm
- # ctrl-alt-r
- Silent Key r A CM Restart
- # show last hidden window (with my special script)
- # 'u' for 'unhide'
- # ctrl-alt-u
- Silent Key u A CM Exec exec $HOME/bin/showwindow.sh
- # toggle borders
- # ctrl-alt-b
- Silent Key b A CM ToggleBorders
- # toggle maximize
- # ctrl-alt-mto
- # don't turn off borders:
- # Silent Key m A CM "Maximize ewmhiwa"
- # turn off borders:
- Silent Key m A CM "ToggleBordersMaximize"
- Silent Key n A CM "ToggleTitle"
- # Simple run dialogue
- # Style fvwm-run-dialog GrabFocus
- # Silent Key F2 A A Exec exec $[HOME]/.fvwm/run-dialog
- Silent Key F2 A M Exec exec $[HOME]/bin/rundlg
- # Key F2 A M Module FvwmForm MyRun
- # *MyRunWarpPointer
- # *MyRunTitle "Run a command"
- # *MyRunFont "StringEncoding=UTF-8:xft:IBM 3161:size=12:antialias=false"
- # *MyRunButtonFont "StringEncoding=UTF-8:xft:IBM 3161:size=12:antialias=false"
- # *MyRunInputFont "StringEncoding=UTF-8:xft:IBM 3161:size=12:antialias=false"
- # *MyRunFore Black
- # *MyRunBack #AEB2C3
- # *MyRunItemFore Black
- # *MyRunItemBack #AEB2C3
- # *MyRunLine center
- # *MyRunText "execute "
- # *MyRunInput Func 40 ""
- # *MyRunLine expand
- # *MyRunButton quit "Cancel" ^C
- # *MyRunButton quit "Run" ^M
- # *MyRunCommand Exec $(Func)
- # *MyRunButton restart "Clear" ^R
- # *MyRunPosition 100 100
- # *MyRunCommand Nop
- # Print Screen
- #Silent Key Print A A Exec exec $HOME/bin/xwdui
- Silent Key Print A A Exec exec $HOME/bin/ffmpeg-dump-ui.py
- # Alt-Print Screen (fullscreen screenshot)
- #Silent Key Print A M Exec exec $HOME/bin/xwdui-root.py
- #Silent Key Print A M Exec exec $HOME/bin/ffmpeg-dump-ui-root.py
- # due to dumb problems with portable pc iii keyboard,
- # i remapped sysrq to multi_key for ps/2 in hwdb, so i have to do this.
- Silent Key Multi_key A M Exec exec $HOME/bin/ffmpeg-dump-ui-root.py
- # Alt-F4 closes a window
- Silent Key F4 A M Close
- # alt-t opens a terminal
- Silent Key 't' A M Exec exec mate-terminal
- # alt-s opens seamonkey
- Silent Key 's' A M Exec exec seamonkey
- #West Focus
- # Window Buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
- # 1 - Open the WindowOps menu.
- # 2 - Close on single click, Destory on double click.
- # 4 - Maximize (right/middle button will only maximize vertical/horizontal)
- # 6 - Iconify (minimize)
- #Mouse 1 1 A Menu MenuWindowOps Delete
- Mouse 1 1 A Menu MenuWindowOps Close
- #Mouse 1 2 A Close
- #ewmhiwa makes fvwm ignore "working area", which stalonetray insists on taking.
- #Mouse 1 2 A Maximize ewmhiwa 100 100
- Mouse 1 2 A ToggleBordersMaximize 100 100
- #Mouse 1 4 A Maximize 100 100
- #Mouse 2 4 A Maximize ewmhiwa 0 100
- Mouse 2 4 A ToggleBordersMaximize 0 100
- #Mouse 3 4 A Maximize ewmhiwa 100 0
- Mouse 3 4 A ToggleBordersMaximize ewmhiwa 100 0
- #Mouse 1 6 A Iconify
- Mouse 1 4 A Iconify
- # alt+click drag to move window
- AddToFunc FuncMoveWin
- #+ I Raise
- + M $0
- #+ D Lower
- # move with alt+click
- Mouse 1 W M FuncMoveWin Move
- # window menu popup with alt+shift+rightclick
- Mouse 3 W MS Menu MenuWindowOpsLong
- # TitleBar: Click to Raise, Move, Double Click to Maximize
- # Mouse Wheel Up/Down to WindowShade On/Off
- # Borders: Click to raise, Move to Resize
- # Root Window: Left Click - Main Menu
- # Right Click - WindowOps Menu
- # Middle Click - Window List Menu
- # Right click TitleBar/Borders for WindowOps Menu
- # + I [Action to do Immediately]
- # + C [Action to do on a Mouse Click]
- # + D [Action to do on a Mouse Double Click]
- # + H [Action to do on a Mouse Hold]
- # + M [Action to do on a Mouse Motion]
- #Mouse 1 T A RaiseMoveX Move "Maximize ewmhiwa"
- Mouse 1 T A RaiseMoveX Move ToggleBordersMaximize
- Mouse 1 FS A RaiseMove Resize
- Mouse 4 T A WindowShade True
- Mouse 5 T A WindowShade False
- Mouse 1 R A Menu MenuFvwmRoot
- Mouse 2 R A WindowList
- Mouse 3 R A Menu MenuWindowOpsLong
- Mouse 1 I A RaiseMoveX Move "Iconify off"
- Mouse 3 T A Menu MenuWindowOps
- Mouse 3 I A Menu MenuIconOps
- #######
- # 6: Window Decor
- #
- # Buttons Locations: [1 3 5 7 9 TTTTT 0 8 6 4 2]
- #
- # 1 - WindowOps Menu
- # 2 - Close
- # 4 - Maximize
- # 6 - Minimize
- ###########
- #TitleStyle Centered Height 18 -- Flat
- #ButtonStyle All ActiveUp Vector 5 15x15@4 15x85@3 85x85@3 85x15@3 \
- # 15x15@3 -- Flat
- #ButtonStyle All ToggledActiveUp Vector 5 15x15@4 15x85@3 85x85@3 \
- # 85x15@3 15x15@3 -- Flat
- #ButtonStyle All ActiveDown Vector 5 20x20@4 20x80@3 80x80@3 80x20@3 \
- # 20x20@3 -- Flat
- #ButtonStyle All ToggledActiveDown Vector 5 20x20@4 20x80@3 80x80@3 \
- # 80x20@3 20x20@3 -- Flat
- #ButtonStyle All ToggledInactive Vector 5 47x47@3 57x53@3 53x53@3 \
- # 53x47@3 47x47@3 -- Flat
- #ButtonStyle All Inactive Vector 5 47x47@3 57x53@3 53x53@3 53x47@3 \
- # 47x47@3 -- Flat
- #AddButtonStyle 1 Active Vector 5 45x45@3 55x45@3 55x55@3 45x55@3 45x45@3
- #AddButtonStyle 2 Active Vector 4 35x35@3 65x65@3 65x35@4 35x65@3
- #AddButtonStyle 4 Active Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 30x70@3 \
- # 30x50@4 50x50@3 50x70@3
- #AddButtonStyle 4 ToggledActiveUp Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 \
- # 30x70@3 50x30@4 50x50@3 70x50@3
- #AddButtonStyle 6 Active Vector 5 35x60@3 65x60@3 65x50@3 35x50@3 35x60@3
- #ButtonStyle All - Clear
- ButtonStyle 1 - MwmDecorMenu
- ButtonStyle 4 - MwmDecorMax
- ButtonStyle 6 - MwmDecorMin
- ############
- # 7: Modules
- #############
- # FvwmIdent
- #
- # FvwmIdent is a module that can be used to get the various info about
- # a window. One use is getting the class/resource/name of a window.
- DestroyModuleConfig FvwmIdent:*
- *FvwmIdent: Colorset 10
- *FvwmIdent: Font "StringEncoding=UTF-8:xft:Sans:size=10:antialias=True"
- # FvwmBanner
- #
- # This displays the Fvwm Logo for 5 seconds. This is displayed
- # when fvwm starts.
- # DestroyModuleConfig FvwmBanner:*
- # *FvwmBanner: NoDecor
- # *FvwmBanner: Timeout 5
- # FvwmScript
- #
- # FvwmScript is a module that allows one to write custom desktop
- # widgets and various other tools. This config uses two FvwmScripts.
- # - DateTime - uses the output of "date" to display the date/time
- # on the RightPanel.
- # - Quit - This is a popup that asks for quit confirmation before
- # quitting fvwm.
- DestroyModuleConfig FvwmScript:*
- *FvwmScript: DefaultColorset 10
- # FvwmButtons - RightPanel
- #
- # FvwmButtons is a powerful module that can be used to build custom
- # panels and docks. This config uses FvwmButtons to build the RightPanel.
- # The panel contains buttons to switch desks, FvwmPager, a system tray,
- # FvwmIconMan (list of running windows), and a clock.
- #
- # Note - To use the system tray you must have "stalonetray" installed.
- # FvwmPager
- #
- # This module displays the location of the windows on the various Pages
- # and Desks. This is setup to show only the Pages on the current Desk.
- DestroyModuleConfig FvwmPager:*
- *FvwmPager: Colorset * 10
- *FvwmPager: HilightColorset * 13
- *FvwmPager: BalloonColorset * 10
- *FvwmPager: WindowColorsets 10 11
- *FvwmPager: Font None
- *FvwmPager: Balloons All
- *FvwmPager: BalloonFont "StringEncoding=UTF-8:xft:Sans:Bold:size=8:antialias=True"
- *FvwmPager: BallonYOffset +2
- *FvwmPager: Window3dBorders
- *FvwmPager: MiniIcons
- # FvwmIconMan
- #
- # FvwmIconMan is a powerful tool to list and manage windows. This
- # is used as the window list in the panel or taskbar.
- DestroyModuleConfig FvwmIconMan:*
- #*FvwmIconMan: UseWinList true
- *FvwmIconMan: ButtonGeometry 120x20
- *FvwmIconMan: ManagerGeometry 1x1
- *FvwmIconMan: Background #003c3c
- *FvwmIconMan: Foreground #ffffff
- *FvwmIconMan: FocusColorset 11
- *FvwmIconMan: IconColorset 14
- *FvwmIconMan: FocusAndSelectColorset 12
- *FvwmIconMan: SelectColorset 12
- *FvwmIconMan: IconAndSelectColorset 12
- *FvwmIconMan: DrawIcons always
- *FvwmIconMan: ReliefThickness 0
- *FvwmIconMan: Format "%t"
- *FvwmIconMan: Font "StringEncoding=UTF-8:xft:Sans:Bold:size=8:antialias=True"
- *FvwmIconMan: Action Mouse 0 A ret
- *FvwmIconMan: Action Mouse 1 A sendcommand IconManClick
- *FvwmIconMan: Action Mouse 3 A sendcommand "Menu MenuIconOps"
- *FvwmIconMan: Resolution global
- *FvwmIconMan: Tips needed
- *FvwmIconMan: Sort id
- # FvwmEvent
- #
- # FvwmEvent is a module that can run an action or function
- # on specific events. This instance changes which desk number
- # is highlighted when the desk is changed.
- DestroyModuleConfig EventNewDesk:*
- *EventNewDesk: PassID
- *EventNewDesk: new_desk ChangeDesk
- # archwiki copypaste
- # *FvwmEvent: new_page "Focus-Previous CurrentPage NoWarp"
- # *FvwmEvent: new_desk "Focus-Previous CurrentDesk"
- # FvwmForm
- #
- # FvwmForm is a module that can be used to build a GUI
- # form. Used with fvwm-menu-desktop-config.fpl.
- # This sets the default colorsets.
- *FvwmFormDefault: Colorset 10
- *FvwmFormDefault: ItemColorset 13
- *FvwmFormDefault: Position 0 200
- # *FvwmFormDefault: Position +80 +80
- #############
- # 8: Misc. Addendum
- #############
- # Motif Window Manager workalike mode.
- Emulate Mwm
- MenuStyle Mwm
- # Default window colors for all:
- Style * Colorset 1, HilightColorset 2
- # Colorset 17, HilightColorset 17
- # Exceptions to the above:
- # formerly Colorset 1, HilightColorset 15:
- Style MComix Colorset 15, HilightColorset 15
- Style "net-runelite-client-RuneLite" Colorset 15, HilightColorset 15
- Style "RuneLite" Colorset 15, HilightColorset 15
- Style touchnav Colorset 15, HilightColorset 15
- Style "Old School RuneScape" Colorset 15, HilightColorset 15
- Style "TabletPC_Applet_Menu" Colorset 15, HilightColorset 15, !Title
- Style "TabletPC_UnitConv" Colorset 15, HilightColorset 15
- Style "retroarch" !Title, !Borders
- # icon backgrounds
- Style * IconBackgroundColorset 17
- Style * IconTitleColorset 17
- # No title bar, no borders on the window,
- # Keep on top (alt-shift-rightclick to get in the menu to turn off)
- Style touchnav !Title, WindowListSkip, !Borders, StaysOnTop
- # Run dialog is an FvwmForm, for instance:
- Style FvwmForm StaysOnTop
- Style * MwmButtons, MwmBorder, MwmDecor
- Style * MwmFunctions, NoResizeHintOverride
- #, ResizeHintOverride
- #Style * BorderWidth 8, HandleWidth 5, MWMButtons, MwmBorder, MwmDecor, MwmFunctions, ResizeHintOverride
- # Title bar height and text location
- TitleStyle Centered Height 22
- # Reserve zero space that I can't move windows into
- EwmhBaseStruts 0 0 0 0
- # cursor icon change for root window
- Exec exec xsetroot -cursor_name left_ptr
- # Start tray if not started yet (script handles checking).
- # Called cde-startup because I used the same script when I ran CDE for a while.
- Exec exec $HOME/bin/cde-startup
- # turn off touchpad, if I've got it installed on the X201 in question
- Exec exec $HOME/bin/touchpad-toggle
- # On-screen keyboard stays on top and is able to pass input
- Style xvkbd NeverFocus, StaysOnTop, Sticky
- # Alternate on screen keyboard
- Style Florence NeverFocus, StaysOnTop, Sticky
- # screenshot tool
- Style "Tkscreengrabber" StaysOnTop, Sticky
- # My custom applet
- Style TabletPC_Applet_Menu NeverFocus, StaysOnTop, Sticky
- Style Wyatt_RunDlg StaysOnTop, Sticky
- Style Categorize_mcomix StaysOnTop, Sticky, !Button 2
- # Style TabletPC_UnitConv NeverFocus, StaysOnTop, Sticky, !Button 4, !Button 2
- Style TabletPC_UnitConv Sticky, !Button 4, !Button 2
- # Remove iconify and maximize buttons from custom tabletPC applet
- Style TabletPC_Applet_Menu !Button 4, !Button 2
- Style TabletPC_Applet_Menu !Borders
Advertisement
Add Comment
Please, Sign In to add comment