| 1 |
################################## |
| 2 |
# ____________________________ |
| 3 |
# ( _________________________) |
| 4 |
# ) (__ _ _ _ _ |
| 5 |
# ( __)( \/ )( \/\/ )/\/\ |
| 6 |
# ) ( \ / \ // \ |
| 7 |
# (___) \/ \/\/(_/\/\_) 3 |
| 8 |
# |
| 9 |
# |
| 10 |
# This is the default configuration file shipped with fvwm. |
| 11 |
# |
| 12 |
# This config file is organized as follows: |
| 13 |
# |
| 14 |
# 1: Functions |
| 15 |
# 2: Styles |
| 16 |
# 3: Colorsets |
| 17 |
# 4: Menus |
| 18 |
# 5: Bindings |
| 19 |
# 6: Decor |
| 20 |
# 7: Modules |
| 21 |
# |
| 22 |
################################# |
| 23 |
|
| 24 |
# InfoStoreAdd can be used to store variable data internal to fvwm. |
| 25 |
# The variable can then be used in the configuration as $[infostore.name]. |
| 26 |
# |
| 27 |
# You can also use environment variables but for data internal to fvwm |
| 28 |
# use InfoStore variables instead. |
| 29 |
# |
| 30 |
# The following is used in various menus. Change this to your terminal of |
| 31 |
# choice. |
| 32 |
InfoStoreAdd terminal xterm |
| 33 |
|
| 34 |
# This is used for "Run Command" and the Meta+Space key-binding. |
| 35 |
# runcmd is the binary name and runcmdopt contains additional |
| 36 |
# command line options. |
| 37 |
InfoStoreAdd runcmd "dmenu_run" |
| 38 |
InfoStoreAdd runcmdopt "-nb '#2b4e5e'" |
| 39 |
|
| 40 |
# DesktopConfiguration sets how fvwm handles desktops: |
| 41 |
# |
| 42 |
# * global -- the default. This means all screens show the same desktops/pages. |
| 43 |
# * per-monitor -- every monitor has its own virtual desktop/pages. |
| 44 |
# For this mode it's recommended that FvwmPager is configured to |
| 45 |
# use the monitor configuration option, so that only windows on that |
| 46 |
# specific monitor are shown. |
| 47 |
# * shared -- the virtual desktops are shared across all monitors and each |
| 48 |
# monitor shows a single desktop at a time. If one monitor switches to a |
| 49 |
# desktop currently being viewed by another, the two monitors swap which |
| 50 |
# desktop they are viewing. This is similar to how Xmonad or Herbsflutwm |
| 51 |
# handle desks. This mode only works with two or more monitors. |
| 52 |
# |
| 53 |
DesktopConfiguration global |
| 54 |
|
| 55 |
########### |
| 56 |
# 1: Functions |
| 57 |
# |
| 58 |
# Fvwm can use custom functions for various tasks. |
| 59 |
# The syntax for defining a function named FunctionName is: |
| 60 |
# |
| 61 |
# DestroyFunc FunctionName |
| 62 |
# AddToFunc FunctionName |
| 63 |
# + I [Action to do Immediately] |
| 64 |
# + C [Action to do on a Mouse Click] |
| 65 |
# + D [Action to do on a Mouse Double Click] |
| 66 |
# + H [Action to do on a Mouse Hold] |
| 67 |
# + M [Action to do on a Mouse Motion] |
| 68 |
########### |
| 69 |
|
| 70 |
# Start Function |
| 71 |
# |
| 72 |
# The start function is run right after fvwm is done reading |
| 73 |
# the config file. This function run after each restart |
| 74 |
# so using Test (Init) or Test (Restart) can further control |
| 75 |
# actions that are run during the first time run (Init) or |
| 76 |
# actions that are run after a restart. |
| 77 |
DestroyFunc StartFunction |
| 78 |
AddToFunc StartFunction |
| 79 |
+ I Test (Init) InitBackground |
| 80 |
+ I Module FvwmButtons RightPanel |
| 81 |
+ I Module FvwmEvent EventNewDesk |
| 82 |
|
| 83 |
# Function to set background when fvwm starts |
| 84 |
DestroyFunc InitBackground |
| 85 |
AddToFunc InitBackground |
| 86 |
+ I Test (f $[FVWM_USERDIR]/.BGdefault) \ |
| 87 |
Exec exec fvwm-root $[FVWM_USERDIR]/.BGdefault |
| 88 |
+ I TestRc (NoMatch) Exec exec fvwm-root \ |
| 89 |
$[FVWM_DATADIR]/default-config/images/background/bg1.png |
| 90 |
|
| 91 |
# Mouse Bindings Functions |
| 92 |
DestroyFunc RaiseMoveX |
| 93 |
AddToFunc RaiseMoveX |
| 94 |
+ I Raise |
| 95 |
+ M $0 |
| 96 |
+ D $1 |
| 97 |
|
| 98 |
DestroyFunc RaiseMove |
| 99 |
AddToFunc RaiseMove |
| 100 |
+ I Raise |
| 101 |
+ M $0 |
| 102 |
|
| 103 |
DestroyFunc MoveToCurrent |
| 104 |
AddToFunc MoveToCurrent |
| 105 |
+ I ThisWindow MoveToPage |
| 106 |
+ I ThisWindow MoveToDesk |
| 107 |
|
| 108 |
# Function: ViewManPage $0 |
| 109 |
# |
| 110 |
# This function loads the man page $0 in an terminal |
| 111 |
# and is used with the help menu. If the manual page is |
| 112 |
# not found, point users at fvwm.org and keep terminal open. |
| 113 |
DestroyFunc ViewManPage |
| 114 |
AddToFunc ViewManPage |
| 115 |
+ I Exec exec $[infostore.terminal] -g 80x40 \ |
| 116 |
-n "Manual Page - $0" -T "Manual Page - $0" -e 'man "$0" || \ |
| 117 |
(echo "$[gt.Documentation can be found at https://www.fvwm.org]"; \ |
| 118 |
read tmp)' |
| 119 |
|
| 120 |
# Function: SetBG $0 |
| 121 |
# |
| 122 |
# SetBG is used with the background menu to set the background |
| 123 |
# image and configure it to be loaded the next time fvwm is run. |
| 124 |
# Note, fvwm-root can't use .jpeg or resize images. Use something |
| 125 |
# like display, feh, etc. |
| 126 |
DestroyFunc SetBG |
| 127 |
AddToFunc SetBG |
| 128 |
+ I Test (f $[FVWM_USERDIR]/images/background/$0) \ |
| 129 |
Exec exec fvwm-root $[FVWM_USERDIR]/images/background/$0 |
| 130 |
+ I TestRc (Match) Exec exec ln -fs images/background/$0 \ |
| 131 |
$[FVWM_USERDIR]/.BGdefault |
| 132 |
+ I TestRc (Match) Break |
| 133 |
+ I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break |
| 134 |
+ I Exec exec fvwm-root $[FVWM_DATADIR]/default-config/images/background/$0 |
| 135 |
+ I Exec exec ln -fs $[FVWM_DATADIR]/default-config/images/background/$0 \ |
| 136 |
$[FVWM_USERDIR]/.BGdefault |
| 137 |
|
| 138 |
|
| 139 |
# Function: IconManClick |
| 140 |
# |
| 141 |
# This function is run from FvwmIconMan when the button is clicked. |
| 142 |
DestroyFunc IconManClick |
| 143 |
AddToFunc IconManClick |
| 144 |
+ I ThisWindow (Raised, !Shaded, !Iconic, CurrentPage, AnyScreen) Iconify |
| 145 |
+ I TestRc (Match) Break |
| 146 |
+ I ThisWindow WindowShade off |
| 147 |
+ I ThisWindow Iconify off |
| 148 |
+ I ThisWindow Raise |
| 149 |
+ I ThisWindow (AcceptsFocus) FlipFocus |
| 150 |
|
| 151 |
# Function: ToggleTitle |
| 152 |
# |
| 153 |
# This function will toggle if fvwm shows the TitleBar. |
| 154 |
DestroyFunc ToggleTitle |
| 155 |
AddToFunc ToggleTitle |
| 156 |
+ I ThisWindow (HasTitle) WindowStyle !Title |
| 157 |
+ I TestRc (NoMatch) WindowStyle Title |
| 158 |
|
| 159 |
# Function: ChangeDesk |
| 160 |
# |
| 161 |
# This function is called by FvwmEvent every time the Desk is changed. |
| 162 |
DestroyFunc ChangeDesk |
| 163 |
AddToFunc ChangeDesk |
| 164 |
+ I SendToModule FvwmButtons ChangeButton desk0 Colorset 10 |
| 165 |
+ I SendToModule FvwmButtons ChangeButton desk1 Colorset 10 |
| 166 |
+ I SendToModule FvwmButtons ChangeButton desk2 Colorset 10 |
| 167 |
+ I SendToModule FvwmButtons ChangeButton desk3 Colorset 10 |
| 168 |
+ I SendToModule FvwmButtons ChangeButton desk$0 Colorset 11 |
| 169 |
|
| 170 |
|
| 171 |
############# |
| 172 |
# 2: Styles # |
| 173 |
############# |
| 174 |
|
| 175 |
# Desktops and Pages |
| 176 |
# |
| 177 |
# Fvwm has both Virtual Desktops and Pages. Each Desktop is built from |
| 178 |
# a grid of Pages. The following sets the name of four Desktops and then |
| 179 |
# divides each Desktop into a 2x2 grid of Pages that are positioned as |
| 180 |
# |
| 181 |
# +---+---+ |
| 182 |
# | | | |
| 183 |
# +---+---+ |
| 184 |
# | | | |
| 185 |
# +---+---+ |
| 186 |
# |
| 187 |
DesktopName 0 Main |
| 188 |
DesktopName 1 Desk1 |
| 189 |
DesktopName 2 Desk2 |
| 190 |
DesktopName 3 Desk3 |
| 191 |
DesktopSize 2x2 |
| 192 |
|
| 193 |
# EdgeScroll will move the view port between the Pages when the mouse |
| 194 |
# moves to the edge of the screen. This set the amount of distance to |
| 195 |
# scroll at 100% (full page) and the EdgeResistance which is a timer |
| 196 |
# for how long the mouse as at the edge before it scrolls. |
| 197 |
# |
| 198 |
# Set EdgeScroll 0 0 and/or EdgeResistance -1 to disable. |
| 199 |
EdgeScroll 100 100 |
| 200 |
EdgeResistance 450 |
| 201 |
EdgeThickness 1 |
| 202 |
Style * EdgeMoveDelay 350, EdgeMoveResistance 350 |
| 203 |
|
| 204 |
# EwmhBaseStruts [screen name] [left] [right] [top] [bottom] |
| 205 |
# Reserves space along the edge(s) of the Screen that will not |
| 206 |
# be covered when maximizing or placing windows. |
| 207 |
EwmhBaseStruts screen $[monitor.primary] 0 120 0 0 |
| 208 |
|
| 209 |
# This sets the ClickTime and MoveThreshold used to determine |
| 210 |
# Double Clicks, Hold and Move for the mouse. |
| 211 |
ClickTime 250 |
| 212 |
MoveThreshold 3 |
| 213 |
|
| 214 |
# Sets the focus style to SloppyFocus and a mouse click |
| 215 |
# in a window will Raise it. |
| 216 |
Style * SloppyFocus, MouseFocusClickRaises |
| 217 |
|
| 218 |
# Default Font |
| 219 |
DefaultFont "xft:Sans:Bold:size=8:antialias=True" |
| 220 |
|
| 221 |
# Window Placement |
| 222 |
Style * MinOverlapPlacement, GrabFocusOff, !UsePPosition |
| 223 |
|
| 224 |
# Sets all windows to OpaqueMove (vs a wired frame) and windows will |
| 225 |
# snap to each other and the edge of the screen. |
| 226 |
OpaqueMoveSize unlimited |
| 227 |
Style * ResizeOpaque, SnapAttraction 15 SameType ScreenAll, SnapGrid |
| 228 |
|
| 229 |
# Transient Windows (such as open file windows) |
| 230 |
Style * DecorateTransient, StackTransientParent |
| 231 |
Style * !FPGrabFocusTransient, FPReleaseFocusTransient |
| 232 |
|
| 233 |
# WindowShade |
| 234 |
Style * WindowShadeScrolls, WindowShadeSteps 10 |
| 235 |
|
| 236 |
# Ignore Numlock and other modifiers for bindings |
| 237 |
# See http://fvwm.org/documentation/faq/#why-do-numlock-capslock-and-scrolllock-interfere-with-clicktofocus-andor-my-mouse-bindings |
| 238 |
IgnoreModifiers L25 |
| 239 |
|
| 240 |
# Decor Styles |
| 241 |
Style * BorderWidth 5, HandleWidth 5, MWMButtons, FvwmBorder, FirmBorder |
| 242 |
Style * Colorset 1, HilightColorset 2 |
| 243 |
|
| 244 |
# BorderColorset and HilightBorderColorset take 8 positive colorsets |
| 245 |
# to specify the colorset for each edge and handle (corner). The order is: |
| 246 |
# North NorthEast East SouthEast South SouthWest West NorthWest |
| 247 |
# This makes the edges and corners (handles) different colors. |
| 248 |
Style * BorderColorset 3 4 3 4 3 4 3 4 |
| 249 |
Style * HilightBorderColorset 4 8 4 8 4 8 4 8 |
| 250 |
|
| 251 |
# Disable Icons from appearing on desktop. |
| 252 |
# Comment this out or use Style * Icon to get the icons back. |
| 253 |
Style * !Icon |
| 254 |
|
| 255 |
# ICCCM allows windows to tell the WM to not give them keyboard focus. |
| 256 |
# Many windows use this incorrectly and expect keyboard focus anyways. |
| 257 |
# This styles tells fvwm to ignore this property, which makes some |
| 258 |
# applications (such as java and electron apps) behave better. |
| 259 |
Style * Lenience |
| 260 |
|
| 261 |
# Window Specific Styles |
| 262 |
Style RightPanel !Title, !Borders, !Handles, Sticky, \ |
| 263 |
WindowListSkip, NeverFocus |
| 264 |
Style ConfirmQuit !Title, PositionPlacement Center, WindowListSkip, Layer 6 |
| 265 |
Style FvwmIdent WindowListSkip |
| 266 |
|
| 267 |
####### |
| 268 |
# 3: Colorsets |
| 269 |
# |
| 270 |
# Colorsets can be used to configure the color of the various |
| 271 |
# parts of fvwm such as window decor, menus, modules, etc. |
| 272 |
# |
| 273 |
# Colorset Convention |
| 274 |
# |
| 275 |
# 0 - Default |
| 276 |
# 1 - Inactive Windows |
| 277 |
# 2 - Active Window |
| 278 |
# 3 - Inactive Windows Borders |
| 279 |
# 4 - Active Windows Borders |
| 280 |
# 5 - Menu - Inactive Item |
| 281 |
# 6 - Menu - Active Item |
| 282 |
# 7 - Menu - Grayed Item |
| 283 |
# 8 - Menu - Title |
| 284 |
# 9 - Reserved |
| 285 |
# 10+ Modules |
| 286 |
# 10 - Module Default |
| 287 |
# 11 - Module Hilight |
| 288 |
# 12 - Module ActiveButton (Mouse Hover) |
| 289 |
# 13 - FvwmPager Active Page |
| 290 |
# 14 - FvwmIconMan Iconified Button |
| 291 |
########### |
| 292 |
# Art-Deco theme (Blue) |
| 293 |
Colorset 0 fg #ffffff, bg #2b4e5e, hi, sh, Plain, NoShape |
| 294 |
Colorset 1 fg #000000, bg #88b2b1, hi, sh, Plain, NoShape |
| 295 |
Colorset 2 fg #ffffff, bg #2b4e5e, hi, sh, Plain, NoShape |
| 296 |
Colorset 3 fg black, bg #415554, hi, sh, Plain, NoShape |
| 297 |
Colorset 4 fg black, bg #14252c, hi #24424f, sh #111f26, Plain, NoShape |
| 298 |
Colorset 5 fg #000000, bg #cbdcca, hi, sh, Plain, NoShape |
| 299 |
Colorset 6 fg #ffffff, bg #88b2b1, hi, sh, Plain, NoShape |
| 300 |
Colorset 7 fg #999999, bg #cbdcca, hi, sh, Plain, NoShape |
| 301 |
Colorset 8 fg #ffffff, bg #2b4e5e, hi, sh, Plain, NoShape |
| 302 |
Colorset 10 fg #ffffff, bg #2b4e5e, hi #aaaaaa, sh #999999, Plain, NoShape |
| 303 |
Colorset 11 fg #ffffff, bg #1a6e99, hi #ffffff, sh #ffffff, Plain, NoShape |
| 304 |
Colorset 12 fg #2d2d2d, bg #ffffff, hi, sh, Plain, NoShape |
| 305 |
Colorset 13 fg #ffffff, bg #006c6c, hi, sh, Plain, NoShape |
| 306 |
Colorset 14 fg #a8988f, bg #2b4e5e, hi #aaaaaa, sh #999999, Plain, NoShape |
| 307 |
|
| 308 |
####### |
| 309 |
# 4: Menus |
| 310 |
########### |
| 311 |
MenuStyle * MenuColorset 5, ActiveColorset 6, GreyedColorset 7, TitleColorset 8 |
| 312 |
MenuStyle * Hilight3DOff, HilightBack, HilightTitleBack, SeparatorsLong |
| 313 |
MenuStyle * TrianglesSolid, TrianglesUseFore |
| 314 |
MenuStyle * ItemFormat "%s%|%3.1i%5.3l%5l%5r%5.3>%|" |
| 315 |
MenuStyle * Font "xft:Sans:Bold:size=8:antialias=True" |
| 316 |
|
| 317 |
# Root Menu |
| 318 |
# |
| 319 |
# The root menu will PopUp with a click in the root |
| 320 |
# window or using alt-f1 (or menu). |
| 321 |
DestroyMenu MenuFvwmRoot |
| 322 |
AddToMenu MenuFvwmRoot "Fvwm" Title |
| 323 |
+ "$[gt.&Programs]%icons/programs.png%" Popup MenuPrograms |
| 324 |
+ "$[gt.XDG &Menu]%icons/apps.png%" Popup XDGMenu |
| 325 |
+ "&XTerm%icons/terminal.png%" Exec exec $[infostore.terminal] |
| 326 |
Test (x $[infostore.runcmd]) + "R&un Command%icons/run_arrow.png%" Exec exec $[infostore.runcmd] $[infostore.runcmdopt] |
| 327 |
+ "" Nop |
| 328 |
Test (x FvwmPrompt) + "&FvwmPrompt%icons/terminal.png%" Exec exec $[infostore.terminal] -e FvwmPrompt |
| 329 |
+ "$[gt.&Wallpapers]%icons/wallpaper.png%" Popup BGMenu |
| 330 |
+ "$[gt.M&an Pages]%icons/help.png%" Popup MenuFvwmManPages |
| 331 |
+ "$[gt.Cop&y Config]%icons/conf.png%" FvwmScript FvwmScript-ConfirmCopyConfig |
| 332 |
+ "" Nop |
| 333 |
+ "$[gt.Re&fresh]%icons/refresh.png%" Refresh |
| 334 |
+ "$[gt.&Restart]%icons/restart.png%" Restart |
| 335 |
+ "$[gt.&Quit]%icons/quit.png%" Module FvwmScript FvwmScript-ConfirmQuit |
| 336 |
|
| 337 |
# Generate XDGMenu |
| 338 |
PipeRead "fvwm-menu-desktop -e" |
| 339 |
|
| 340 |
# Programs Menu |
| 341 |
# |
| 342 |
# This test for some common programs and adds them to the menu. |
| 343 |
# When adding programs you don't need to use the Test (x foo) |
| 344 |
# lines as this is only to help make this menu portable. |
| 345 |
DestroyMenu MenuPrograms |
| 346 |
AddToMenu MenuPrograms "$[gt.Programs]" Title |
| 347 |
Test (x chromium) + "Chromium" Exec exec chromium |
| 348 |
Test (x firefox) + "Firefox" Exec exec firefox |
| 349 |
Test (x google-chrome) + "Google-Chrome" Exec exec google-chrome |
| 350 |
Test (x gvim) + "gVim" Exec exec gvim |
| 351 |
Test (x emacs) + "Emacs" Exec exec emacs |
| 352 |
Test (x gimp) + "Gimp" Exec exec gimp |
| 353 |
Test (x vlc) + "VLC" Exec exec vlc |
| 354 |
|
| 355 |
# Background Menu |
| 356 |
# |
| 357 |
# Backgrounds are located in ~/.fvwm/images/background/ |
| 358 |
# Menu icons are located in ~/.fvwm/images/bgicons/ |
| 359 |
DestroyMenu BGMenu |
| 360 |
AddToMenu BGMenu "$[gt.Wallpapers]" Title |
| 361 |
+ "$[gt.Floral]%bgicons/bg1.png%" SetBG bg1.png |
| 362 |
+ "$[gt.Circles]%bgicons/bg2.png%" SetBG bg2.png |
| 363 |
+ "$[gt.Space]%bgicons/bg3.png%" SetBG bg3.png |
| 364 |
|
| 365 |
# Window Operations Menus |
| 366 |
DestroyMenu MenuWindowOps |
| 367 |
AddToMenu MenuWindowOps |
| 368 |
+ "$[gt.Move]" Move |
| 369 |
+ "$[gt.Resize]" Resize |
| 370 |
+ "$[gt.(De)Iconify]" Iconify |
| 371 |
+ "$[gt.(Un)Maximize]" Maximize |
| 372 |
+ "$[gt.(Un)Shade]" WindowShade |
| 373 |
+ "$[gt.(Un)Stick]" Stick |
| 374 |
+ "" Nop |
| 375 |
+ "$[gt.Close]" Close |
| 376 |
+ "$[gt.More]..." Menu MenuWindowOpsLong This 0 0 |
| 377 |
|
| 378 |
DestroyMenu MenuWindowOpsLong |
| 379 |
AddToMenu MenuWindowOpsLong "$[gt.Window Ops]" Title |
| 380 |
+ "$[gt.Move]%icons/win/move.png%" Move |
| 381 |
+ "$[gt.Resize]%icons/win/resize.png%" Resize |
| 382 |
+ "$[gt.(De)Iconify]%icons/win/iconify.png%" Iconify |
| 383 |
+ "$[gt.(Un)Maximize]%icons/win/max.png%" Maximize |
| 384 |
+ "$[gt.(Un)Shade]%icons/win/shade.png%" WindowShade |
| 385 |
+ "$[gt.(Un)Sticky]%icons/win/sticky.png%" Stick |
| 386 |
+ "$[gt.(No)Title Bar]%icons/win/title.png%" Pick (CirculateHit) ToggleTitle |
| 387 |
+ "$[gt.Send To]%icons/win/sendto.png%" Popup MenuSendTo |
| 388 |
+ "" Nop |
| 389 |
+ "$[gt.Close]%icons/win/close.png%" Close |
| 390 |
+ "$[gt.Destroy]%icons/win/destroy.png%" Destroy |
| 391 |
+ "" Nop |
| 392 |
+ "$[gt.Raise]%icons/win/raise.png%" Raise |
| 393 |
+ "$[gt.Lower]%icons/win/lower.png%" Lower |
| 394 |
+ "" Nop |
| 395 |
+ "$[gt.Stays On Top]%icons/win/top.png%" Pick (CirculateHit) Layer 0 6 |
| 396 |
+ "$[gt.Stays Put]%icons/win/stays.png%" Pick (CirculateHit) Layer 0 4 |
| 397 |
+ "$[gt.Stays On Bottom]%icons/win/bottom.png%" Pick (CirculateHit) Layer 0 2 |
| 398 |
+ "" Nop |
| 399 |
+ "$[gt.Identify]%icons/info.png%" Module FvwmIdent |
| 400 |
|
| 401 |
DestroyMenu MenuIconOps |
| 402 |
AddToMenu MenuIconOps |
| 403 |
+ "$[gt.(De)Iconify]%icons/win/iconify.png%" Iconify |
| 404 |
+ "$[gt.(Un)Maximize]%icons/win/max.png%" Maximize |
| 405 |
+ "$[gt.(Un)Shade]%icons/win/shade.png%" WindowShade |
| 406 |
+ "$[gt.(Un)Sticky]%icons/win/sticky.png%" Stick |
| 407 |
+ "$[gt.(No)TitleBar]%icons/win/title.png%" Pick (CirculateHit) ToggleTitle |
| 408 |
+ "$[gt.Send To]%icons/win/sendto.png%" Popup MenuSendTo |
| 409 |
+ "" Nop |
| 410 |
+ "$[gt.Close]%icons/win/close.png%" Close |
| 411 |
+ "$[gt.Destroy]%icons/win/destroy.png%" Destroy |
| 412 |
+ "" Nop |
| 413 |
+ "$[gt.Raise]%icons/win/raise.png%" Raise |
| 414 |
+ "$[gt.Lower]%icons/win/lower.png%" Lower |
| 415 |
+ "" Nop |
| 416 |
+ "$[gt.Stays On Top]%icons/win/top.png%" Pick (CirculateHit) Layer 0 6 |
| 417 |
+ "$[gt.Stays Put]%icons/win/stays.png%" Pick (CirculateHit) Layer 0 4 |
| 418 |
+ "$[gt.Stays On Bottom]%icons/win/bottom.png%" Pick (CirculateHit) Layer 0 2 |
| 419 |
+ "" Nop |
| 420 |
+ "$[gt.Identify]%icons/info.png%" Module FvwmIdent |
| 421 |
|
| 422 |
DestroyMenu MenuSendTo |
| 423 |
AddToMenu MenuSendTo |
| 424 |
+ "$[gt.Current]" MoveToCurrent |
| 425 |
+ "$[gt.Page]" PopUp MenuSendToPage |
| 426 |
+ "$[gt.Desk]" PopUp MenuSendToDesk |
| 427 |
|
| 428 |
DestroyMenu MenuSendToDesk |
| 429 |
AddToMenu MenuSendToDesk |
| 430 |
+ "$[gt.Desk] 0" MoveToDesk 0 0 |
| 431 |
+ "$[gt.Desk] 1" MoveToDesk 0 1 |
| 432 |
+ "$[gt.Desk] 2" MoveToDesk 0 2 |
| 433 |
+ "$[gt.Desk] 3" MoveToDesk 0 3 |
| 434 |
|
| 435 |
DestroyMenu MenuSendToPage |
| 436 |
AddToMenu MenuSendToPage |
| 437 |
+ "$[gt.Page] (0,0)" MoveToPage 0 0 |
| 438 |
+ "$[gt.Page] (0,1)" MoveToPage 0 1 |
| 439 |
+ "$[gt.Page] (1,0)" MoveToPage 1 0 |
| 440 |
+ "$[gt.Page] (1,1)" MoveToPage 1 1 |
| 441 |
|
| 442 |
|
| 443 |
# Fvwm Man Pages (Help) Menu |
| 444 |
DestroyMenu MenuFvwmManPages |
| 445 |
AddToMenu MenuFvwmManPages "Help" Title |
| 446 |
+ "fvwm3" ViewManPage fvwm3 |
| 447 |
+ "fvwm3commands" ViewManPage fvwm3commands |
| 448 |
+ "fvwm3styles" ViewManPage fvwm3styles |
| 449 |
+ "fvwm3menus" ViewManPage fvwm3menus |
| 450 |
+ "fvwm3all" ViewManPage fvwm3all |
| 451 |
+ "" Nop |
| 452 |
+ "FvwmAnimate" ViewManPage FvwmAnimate |
| 453 |
+ "FvwmAuto" ViewManPage FvwmAuto |
| 454 |
+ "FvwmBacker" ViewManPage FvwmBacker |
| 455 |
+ "FvwmButtons" ViewManPage FvwmButtons |
| 456 |
+ "FvwmCommand" ViewManPage FvwmCommand |
| 457 |
+ "FvwmEvent" ViewManPage FvwmEvent |
| 458 |
+ "FvwmIconMan" ViewManPage FvwmIconMan |
| 459 |
+ "FvwmIdent" ViewManPage FvwmIdent |
| 460 |
+ "FvwmPager" ViewManPage FvwmPager |
| 461 |
+ "FvwmPerl" ViewManPage FvwmPerl |
| 462 |
Test (x FvwmPrompt) + "FvwmPrompt" ViewManPage FvwmPrompt |
| 463 |
+ "FvwmRearrange" ViewManPage FvwmRearrange |
| 464 |
+ "FvwmScript" ViewManPage FvwmScript |
| 465 |
+ "" Nop |
| 466 |
+ "fvwm-root" ViewManPage fvwm-root |
| 467 |
+ "fvwm-menu-desktop" ViewManPage fvwm-menu-desktop |
| 468 |
+ "fvwm-menu-directory" ViewManPage fvwm-menu-directory |
| 469 |
+ "fvwm-menu-xlock" ViewManPage fvwm-menu-xlock |
| 470 |
|
| 471 |
####### |
| 472 |
# 5: Mouse and Key bindings |
| 473 |
# |
| 474 |
# Contexts: |
| 475 |
# R = Root Window rrrrrrrrrrrrrrrrrrrrrr |
| 476 |
# W = Application Window rIrrrr<---------^rrrrr |
| 477 |
# F = Frame Corners rrrrrr[13TTTT642]rrrrr |
| 478 |
# S = Frame Sides rIrrrr[wwwwwwwww]rrrrr |
| 479 |
# T = Title Bar rrrrrr[wwwwwwwww]rrrrr |
| 480 |
# I = Icon rIrrrrv_________>rrrrr |
| 481 |
# rrrrrrrrrrrrrrrrrrrrrr |
| 482 |
# |
| 483 |
# Numbers are buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2] |
| 484 |
# |
| 485 |
# Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing |
| 486 |
# |
| 487 |
# Format: Key <X> <Context> <Modifier> <Action> |
| 488 |
# Mouse <X> <Context> <Modifier> <Action> |
| 489 |
#################### |
| 490 |
|
| 491 |
# Alt-F1 or Menu to load the root menu and Alt-Tab for a WindowList. |
| 492 |
# Ctrl-F1/F2/F3/F4 will switch between the Virtual Desktops. |
| 493 |
# Super_R (windows key) will launch a terminal. |
| 494 |
# Alt-Space to launch dmenu (Note: dmenu must be present in the system) |
| 495 |
# |
| 496 |
# Silent suppresses any errors (such as keyboards with no Menu key). |
| 497 |
Silent Key F1 A M Menu MenuFvwmRoot |
| 498 |
Silent Key Menu A A Menu MenuFvwmRoot |
| 499 |
Silent Key Tab A M WindowList Root c c NoDeskSort, NoGeometry, SelectOnRelease Meta_L, CurrentAtEnd |
| 500 |
Silent Key F1 A C GotoDesk 0 0 |
| 501 |
Silent Key F2 A C GotoDesk 0 1 |
| 502 |
Silent Key F3 A C GotoDesk 0 2 |
| 503 |
Silent Key F4 A C GotoDesk 0 3 |
| 504 |
Silent Key Super_R A A Exec exec $[infostore.terminal] |
| 505 |
Test (x $[infostore.runcmd]) Silent Key Space A M Exec exec $[infostore.runcmd] $[infostore.runcmdopt] |
| 506 |
|
| 507 |
# Window Buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2] |
| 508 |
# 1 - Open the WindowOps menu. |
| 509 |
# 2 - Close on single click, Destory on double click. |
| 510 |
# 4 - Maximize (right/middle button will only maximize vertical/horizontal) |
| 511 |
# 6 - Iconify (minimize) |
| 512 |
Mouse 1 1 A Menu MenuWindowOps Delete |
| 513 |
Mouse 1 2 A Close |
| 514 |
Mouse 1 4 A Maximize 100 100 |
| 515 |
Mouse 2 4 A Maximize 0 100 |
| 516 |
Mouse 3 4 A Maximize 100 0 |
| 517 |
Mouse 1 6 A Iconify |
| 518 |
|
| 519 |
# TitleBar: Click to Raise, Move, Double Click to Maximize |
| 520 |
# Mouse Wheel Up/Down to WindowShade On/Off |
| 521 |
# Borders: Click to raise, Move to Resize |
| 522 |
# Root Window: Left Click - Main Menu |
| 523 |
# Right Click - WindowOps Menu |
| 524 |
# Middle Click - Window List Menu |
| 525 |
# Right click TitleBar/Borders for WindowOps Menu |
| 526 |
Mouse 1 T A RaiseMoveX Move Maximize |
| 527 |
Mouse 1 FS A RaiseMove Resize |
| 528 |
Mouse 4 T A WindowShade True |
| 529 |
Mouse 5 T A WindowShade False |
| 530 |
Mouse 1 R A Menu MenuFvwmRoot |
| 531 |
Mouse 2 R A WindowList |
| 532 |
Mouse 3 R A Menu MenuWindowOpsLong |
| 533 |
Mouse 1 I A RaiseMoveX Move "Iconify off" |
| 534 |
Mouse 3 T A Menu MenuWindowOps |
| 535 |
Mouse 3 I A Menu MenuIconOps |
| 536 |
|
| 537 |
# Shuffle moves a window in a given direction until it hits another window. |
| 538 |
# These bindings will shuffle a window using the arrow keys. |
| 539 |
# Ctrl-Alt Up_Arrow - Shuffle window up |
| 540 |
# Ctrl-Alt Right_Arrow - Shuffle window right |
| 541 |
# Ctrl-Alt Down_Arrow - Shuffle window down |
| 542 |
# Ctrl-Alt Left_Arrow - Shuffle window left |
| 543 |
# Holding shift (Ctrl-Alt-Shift) will grow the window in the given direction. |
| 544 |
DestroyFunc ShuffleDir |
| 545 |
AddToFunc ShuffleDir |
| 546 |
+ I Move shuffle layers $[w.layer] $[w.layer] snap windows $0 |
| 547 |
+ I WarpToWindow 50 50 |
| 548 |
|
| 549 |
Key Up WTSF CM ShuffleDir up |
| 550 |
Key Down WTSF CM ShuffleDir down |
| 551 |
Key Left WTSF CM ShuffleDir left |
| 552 |
Key Right WTSF CM ShuffleDir right |
| 553 |
Key Up WTSF CSM Maximize True 0 growup |
| 554 |
Key Down WTSF CSM Maximize True 0 growdown |
| 555 |
Key Right WTSF CSM Maximize True growright 0 |
| 556 |
Key Left WTSF CSM Maximize True growleft 0 |
| 557 |
|
| 558 |
####### |
| 559 |
# 6: Window Decor |
| 560 |
# |
| 561 |
# Buttons Locations: [1 3 5 7 9 TTTTT 0 8 6 4 2] |
| 562 |
# |
| 563 |
# 1 - WindowOps Menu |
| 564 |
# 2 - Close |
| 565 |
# 4 - Maximize |
| 566 |
# 6 - Minimize |
| 567 |
########### |
| 568 |
TitleStyle Centered Height 18 -- Flat |
| 569 |
ButtonStyle All ActiveUp Vector 5 15x15@4 15x85@3 85x85@3 85x15@3 \ |
| 570 |
15x15@3 -- Flat |
| 571 |
ButtonStyle All ToggledActiveUp Vector 5 15x15@4 15x85@3 85x85@3 \ |
| 572 |
85x15@3 15x15@3 -- Flat |
| 573 |
ButtonStyle All ActiveDown Vector 5 20x20@4 20x80@3 80x80@3 80x20@3 \ |
| 574 |
20x20@3 -- Flat |
| 575 |
ButtonStyle All ToggledActiveDown Vector 5 20x20@4 20x80@3 80x80@3 \ |
| 576 |
80x20@3 20x20@3 -- Flat |
| 577 |
ButtonStyle All ToggledInactive Vector 5 47x47@3 47x53@3 53x53@3 \ |
| 578 |
53x47@3 47x47@3 -- Flat |
| 579 |
ButtonStyle All Inactive Vector 5 47x47@3 47x53@3 53x53@3 53x47@3 \ |
| 580 |
47x47@3 -- Flat |
| 581 |
AddButtonStyle 1 Active Vector 5 45x45@3 55x45@3 55x55@3 45x55@3 45x45@3 |
| 582 |
AddButtonStyle 2 Active Vector 4 35x35@3 65x65@3 35x65@4 65x35@3 |
| 583 |
AddButtonStyle 4 Active Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 30x70@3 \ |
| 584 |
30x50@4 50x50@3 50x70@3 |
| 585 |
AddButtonStyle 4 ToggledActiveUp Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 \ |
| 586 |
30x70@3 50x30@4 50x50@3 70x50@3 |
| 587 |
AddButtonStyle 6 Active Vector 5 35x60@3 65x60@3 65x50@3 35x50@3 35x60@3 |
| 588 |
ButtonStyle All - Clear |
| 589 |
ButtonStyle 1 - MwmDecorMenu |
| 590 |
ButtonStyle 4 - MwmDecorMax |
| 591 |
ButtonStyle 6 - MwmDecorMin |
| 592 |
|
| 593 |
############ |
| 594 |
# 7: Modules |
| 595 |
############# |
| 596 |
|
| 597 |
# FvwmIdent |
| 598 |
# |
| 599 |
# FvwmIdent is a module that can be used to get the various info about |
| 600 |
# a window. One use is getting the class/resource/name of a window. |
| 601 |
DestroyModuleConfig FvwmIdent:* |
| 602 |
*FvwmIdent: Colorset 10 |
| 603 |
*FvwmIdent: Font "xft:Sans:size=10:antialias=True" |
| 604 |
|
| 605 |
# FvwmScript |
| 606 |
# |
| 607 |
# FvwmScript is a module that allows one to write custom desktop |
| 608 |
# widgets and various other tools. This config uses two FvwmScripts. |
| 609 |
# - DateTime - uses the output of "date" to display the date/time |
| 610 |
# on the RightPanel. |
| 611 |
# - Quit - This is a popup that asks for quit confirmation before |
| 612 |
# quitting fvwm. |
| 613 |
DestroyModuleConfig FvwmScript:* |
| 614 |
*FvwmScript: DefaultColorset 10 |
| 615 |
|
| 616 |
# FvwmButtons - RightPanel |
| 617 |
# |
| 618 |
# FvwmButtons is a powerful module that can be used to build custom |
| 619 |
# panels and docks. This config uses FvwmButtons to build the RightPanel. |
| 620 |
# The panel contains buttons to switch desks, FvwmPager, a system tray, |
| 621 |
# FvwmIconMan (list of running windows), and a clock. |
| 622 |
# |
| 623 |
# Note - To use the system tray you must have "stalonetray" installed. |
| 624 |
DestroyModuleConfig RightPanel:* |
| 625 |
*RightPanel: Geometry 120x$[monitor.$[monitor.primary].height]-0+0@p |
| 626 |
*RightPanel: Colorset 10 |
| 627 |
*RightPanel: Rows $[monitor.$[monitor.primary].height] |
| 628 |
*RightPanel: Columns 120 |
| 629 |
*RightPanel: Frame 0 |
| 630 |
*RightPanel: Font "xft:Sans:Bold:size=10:antialias=True" |
| 631 |
*RightPanel: (120x45, Icon "fvwm-logo-small.png", Frame 0) |
| 632 |
*RightPanel: (120x5, Frame 0) |
| 633 |
*RightPanel: (10x25, Frame 0) |
| 634 |
*RightPanel: (25x25, Id desk0, Title "0", Action (Mouse 1) GotoDesk 0 0, Colorset 11, ActiveColorset 12, Frame 0) |
| 635 |
*RightPanel: (25x25, Id desk1, Title "1", Action (Mouse 1) GotoDesk 0 1, ActiveColorset 12, Frame 0) |
| 636 |
*RightPanel: (25x25, Id desk2, Title "2", Action (Mouse 1) GotoDesk 0 2, ActiveColorset 12, Frame 0) |
| 637 |
*RightPanel: (25x25, Id desk3, Title "3", Action (Mouse 1) GotoDesk 0 3, ActiveColorset 12, Frame 0) |
| 638 |
*RightPanel: (10x25, Frame 0) |
| 639 |
*RightPanel: (5x80, Frame 0) |
| 640 |
*RightPanel: (110x80, Swallow FvwmPager 'Module FvwmPager *', Frame 0) |
| 641 |
*RightPanel: (5x80, Frame 0) |
| 642 |
*RightPanel: (120x5, Frame 0) |
| 643 |
Test (x stalonetray) *RightPanel: (120x20, Swallow(NoClose,UseOld) \ |
| 644 |
stalonetray 'Exec exec stalonetray --config \ |
| 645 |
"$[FVWM_DATADIR]/default-config/stalonetrayrc"', Frame 0) |
| 646 |
Test (x stalonetray) *RightPanel: (120x$[math.-.$[monitor.$[monitor.primary].height],230], \ |
| 647 |
Top, Swallow FvwmIconMan 'Module FvwmIconMan', Frame 0) |
| 648 |
Test (!x stalonetray) *RightPanel: (120x$[math.-.$[monitor.$[monitor.primary].height],210], \ |
| 649 |
Top, Swallow FvwmIconMan 'Module FvwmIconMan', Frame 0) |
| 650 |
*RightPanel: (120x45, Swallow DateTime 'Module FvwmScript FvwmScript-DateTime',\ |
| 651 |
Frame 0) |
| 652 |
*RightPanel: (120x5, Frame 0) |
| 653 |
|
| 654 |
# FvwmPager |
| 655 |
# |
| 656 |
# This module displays the location of the windows on the various Pages |
| 657 |
# and Desks. This is setup to show only the Pages on the current Desk. |
| 658 |
DestroyModuleConfig FvwmPager:* |
| 659 |
*FvwmPager: Geometry 110x80 |
| 660 |
*FvwmPager: Colorset * 10 |
| 661 |
*FvwmPager: HilightColorset * 13 |
| 662 |
*FvwmPager: BalloonColorset * 10 |
| 663 |
*FvwmPager: WindowColorsets 10 11 |
| 664 |
*FvwmPager: Font None |
| 665 |
*FvwmPager: Balloons All |
| 666 |
*FvwmPager: BalloonFont "xft:Sans:Bold:size=8:antialias=True" |
| 667 |
*FvwmPager: BallonYOffset +2 |
| 668 |
*FvwmPager: Window3dBorders |
| 669 |
*FvwmPager: MiniIcons |
| 670 |
|
| 671 |
# FvwmIconMan |
| 672 |
# |
| 673 |
# FvwmIconMan is a powerful tool to list and manage windows. This |
| 674 |
# is used as the window list in the panel or taskbar. |
| 675 |
DestroyModuleConfig FvwmIconMan:* |
| 676 |
*FvwmIconMan: UseWinList true |
| 677 |
*FvwmIconMan: ButtonGeometry 120x20 |
| 678 |
*FvwmIconMan: ManagerGeometry 1x1 |
| 679 |
*FvwmIconMan: Colorset 10 |
| 680 |
*FvwmIconMan: FocusColorset 11 |
| 681 |
*FvwmIconMan: IconColorset 14 |
| 682 |
*FvwmIconMan: FocusAndSelectColorset 12 |
| 683 |
*FvwmIconMan: SelectColorset 12 |
| 684 |
*FvwmIconMan: IconAndSelectColorset 12 |
| 685 |
*FvwmIconMan: DrawIcons always |
| 686 |
*FvwmIconMan: ReliefThickness 0 |
| 687 |
*FvwmIconMan: Format "%t" |
| 688 |
*FvwmIconMan: Font "xft:Sans:Bold:size=8:antialias=True" |
| 689 |
*FvwmIconMan: Action Mouse 0 A ret |
| 690 |
*FvwmIconMan: Action Mouse 1 A sendcommand IconManClick |
| 691 |
*FvwmIconMan: Action Mouse 3 A sendcommand "Menu MenuIconOps" |
| 692 |
*FvwmIconMan: Resolution global |
| 693 |
*FvwmIconMan: Tips needed |
| 694 |
*FvwmIconMan: Sort id |
| 695 |
|
| 696 |
# FvwmEvent |
| 697 |
# |
| 698 |
# FvwmEvent is a module that can run an action or function |
| 699 |
# on specific events. This instance changes which desk number |
| 700 |
# is highlighted when the desk is changed. |
| 701 |
DestroyModuleConfig EventNewDesk:* |
| 702 |
*EventNewDesk: PassID |
| 703 |
*EventNewDesk: new_desk ChangeDesk |
| 704 |
|
| 705 |
# Local configuration file. For use with the default-config. |
| 706 |
# |
| 707 |
# If $FVWMUSER_DIR/local.config ($HOME/.fvwm/local.config by default) |
| 708 |
# exists, then read it. This allows changes to default-config settings |
| 709 |
# without needing a full copy of the default-config. This will also allow |
| 710 |
# default-config changes to get used after upgrades (if applicable). |
| 711 |
Test (f $[FVWM_USERDIR]/local.config) Read $[FVWM_USERDIR]/local.config |