.fvwm/config
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 15 Jan 2014 12:36:33 +0200
changeset 687 38cec4256537
parent 683 d95d6ab31a4a
child 712 ba5eefb8ce73
permissions -rw-r--r--
Get beck ClickToFocus as without it I cant move/resize/close Firefox Web Developer transient "Inspect Network Request" windows. Also I like that click on main window area doesn't hide previous active window by rising clicked window.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
390
4944184fa48b Move some info from .fvwm2rc to config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 389
diff changeset
     1
# -*- mode: fvwm; fill-column: 90 -*-
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
478
2913a8a1a474 Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 477
diff changeset
     3
################################################################
496
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
     4
# Help on syntax.
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
     5
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
     6
# DestroyFunc FuncName
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
     7
# AddToFunc   FuncName
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
     8
# + I (Action to happen immediately)
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
     9
# + C (Action to happen on a mouse 'click)
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    10
# + D (Action to happen on a mouse 'double click')
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    11
# + H (Action to happen on a mouse 'hold')
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    12
# + M (Action to happen on a mouse 'motion')
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    13
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    14
# Mouse [(window)] Button Context Modifiers Function
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    15
# Button
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    16
#   1 left
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    17
#   2 right
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    18
#   3 middle
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    19
# Context
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    20
#   ’R’ for the root window
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    21
#   ’W’  for  an application  window
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    22
#   ’D’ for a desktop application (as kdesktop or Nautilus desktop)
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    23
#   ’T’ for a window title-bar
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    24
#   ’S’ for a window side, top, or bottom bar,
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    25
#   ’[’, ’]’, ´-’ and ’_’ for the left, right, top or bottom  side  only
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    26
#   ’F’  for a window frame (the corners),
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    27
#   ’<’, ’^’, ’>’ and ’v’ for the top left, top right, bottom right or bottom left corner,
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    28
#   ’I’ for an icon window
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    29
#   ’0’  through  ’9’  for  title-bar buttons
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    30
#   ’A’ is for any context
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    31
# Modifiers
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    32
#   ’N’ for no modifiers
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    33
#   ’C’ for control
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    34
#   ’S’ for shift
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    35
#   ’M’ for Meta
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    36
#   ’L’ for  Caps-Lock
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    37
#   ’A’ for any modifier
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    38
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    39
# Key [(window)] Keyname Context Modifiers Function
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    40
# See Keyname on /usr/include/X11/keysymdef.h, without the XK_ prefix.
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    41
554
495b0d0c1fed Use Bash for PIPESTATUS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 551
diff changeset
    42
# Use Bash for PIPESTATUS.
495b0d0c1fed Use Bash for PIPESTATUS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 551
diff changeset
    43
ExecUseShell /bin/bash
495b0d0c1fed Use Bash for PIPESTATUS.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 551
diff changeset
    44
496
b171f9bbc70f Move help text to separate section.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 495
diff changeset
    45
################################################################
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
    46
# Debugging code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
    47
664
19e96a948272 Reorder text to show that BugOpts wasn't related to FvwmDebug module.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 663
diff changeset
    48
# BugOpts DisplayNewWindowNames on
674
640bfe13ab7c Add stabs to easy disable debugging.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 673
diff changeset
    49
# BugOpts DisplayNewWindowNames off
664
19e96a948272 Reorder text to show that BugOpts wasn't related to FvwmDebug module.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 663
diff changeset
    50
# BugOpts ExplainWindowPlacement on
674
640bfe13ab7c Add stabs to easy disable debugging.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 673
diff changeset
    51
# BugOpts ExplainWindowPlacement off
664
19e96a948272 Reorder text to show that BugOpts wasn't related to FvwmDebug module.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 663
diff changeset
    52
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
    53
# KillModule FvwmDebug
676
d2b22a080eb3 Use FPClick* instead of MouseFocusClickRaises
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 675
diff changeset
    54
# Module FvwmDebug -m -1
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
    55
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
    56
################################################################
478
2913a8a1a474 Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 477
diff changeset
    57
# Set paths.
353
6d29cd30411c Move pager to left.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 352
diff changeset
    58
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
    59
m4_define(`m4_IMGPATH', `$[FVWM_USERDIR]/images')m4_dnl
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
    60
m4_define(`m4_ICONPATH', `$[FVWM_USERDIR]/icons')m4_dnl
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
    61
478
2913a8a1a474 Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 477
diff changeset
    62
ModulePath $[FVWM_USERDIR]:+
662
7d621ab82797 Remove unused directory from possible image dir.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 661
diff changeset
    63
ImagePath m4_ICONPATH:m4_IMGPATH:+
353
6d29cd30411c Move pager to left.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 352
diff changeset
    64
506
0ab510cb567d Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 505
diff changeset
    65
# Debian paths.
515
b1b031354856 Add missing path to 'folder.png' which used in 'xdg2fvwm.py'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 514
diff changeset
    66
ImagePath +:/usr/share/icons/gnome/16x16/places
506
0ab510cb567d Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 505
diff changeset
    67
ImagePath +:/usr/share/icons/gnome/32x32/apps
575
77da3f78d0d6 Add additional path for icons.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 573
diff changeset
    68
ImagePath +:/usr/share/icons/gnome-colors-common/32x32/apps
506
0ab510cb567d Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 505
diff changeset
    69
ImagePath +:/usr/share/icons/locolor/32x32/apps
542
5674fac0249d This paths contain icons that they make menus look ugly...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 540
diff changeset
    70
# ImagePath +:/usr/share/icons/hicolor/16x16/apps
5674fac0249d This paths contain icons that they make menus look ugly...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 540
diff changeset
    71
ImagePath +:/usr/share/icons/hicolor/22x22/apps
5674fac0249d This paths contain icons that they make menus look ugly...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 540
diff changeset
    72
ImagePath +:/usr/share/icons/hicolor/24x24/apps
506
0ab510cb567d Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 505
diff changeset
    73
ImagePath +:/usr/share/icons/hicolor/32x32/apps
542
5674fac0249d This paths contain icons that they make menus look ugly...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 540
diff changeset
    74
ImagePath +:/usr/share/icons/hicolor/48x48/apps
5674fac0249d This paths contain icons that they make menus look ugly...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 540
diff changeset
    75
# ImagePath +:/usr/share/icons/hicolor/64x64/apps
519
11e26495ad85 Assume that icon from desktop file have PNG type. So again comment out paths
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 517
diff changeset
    76
# This paths contain large icons for some apps, they make menus look ugly...
542
5674fac0249d This paths contain icons that they make menus look ugly...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 540
diff changeset
    77
# ImagePath +:/usr/share/app-install/icons/
5674fac0249d This paths contain icons that they make menus look ugly...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 540
diff changeset
    78
# ImagePath +:/usr/share/pixmaps
506
0ab510cb567d Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 505
diff changeset
    79
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
    80
################################################################
498
ee4c76abe7a8 Set aliases to common values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 497
diff changeset
    81
# Set aliases to common values.
ee4c76abe7a8 Set aliases to common values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 497
diff changeset
    82
666
a7c2eb716b0d Set default font. Make title more narrow.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 664
diff changeset
    83
m4_define(`m4_MONOFONT', `-misc-fixed-medium-r-semicondensed-*-13-120-*-*-*-*-iso10646-1')m4_dnl
a7c2eb716b0d Set default font. Make title more narrow.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 664
diff changeset
    84
m4_define(`m4_BIGMONOFONT', `-misc-fixed-medium-r-*-*-18-*-*-*-*-*-iso10646-1')m4_dnl
498
ee4c76abe7a8 Set aliases to common values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 497
diff changeset
    85
# As args expected class name.
666
a7c2eb716b0d Set default font. Make title more narrow.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 664
diff changeset
    86
m4_define(`m4_XTERM_MC',`xterm -name $1 -fn "'m4_BIGMONOFONT`" -geometry 136x42 -e bash -i -c "mc -x"')m4_dnl
498
ee4c76abe7a8 Set aliases to common values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 497
diff changeset
    87
ee4c76abe7a8 Set aliases to common values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 497
diff changeset
    88
################################################################
495
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
    89
# Startup functions.
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
    90
661
1b29d3682970 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 650
diff changeset
    91
# Run only on sturtup.
495
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
    92
DestroyFunc InitFunction
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
    93
AddToFunc InitFunction
580
34b0b3232025 * Load Emacs and Firefox automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 579
diff changeset
    94
# Right offset: 80 from FvwmPager + 2*6 from border = 92.
650
db2d2a561858 Strip year part. Make window smaller.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 647
diff changeset
    95
+ I Exec  exec xclock -digit -update 1 -strftime '%m-%d %T %a' -padding 2 -geometry 130x16-92+0 -face Monospace-9 -bg gray
683
d95d6ab31a4a Fix Fvwm maximize window problem with stalonetray.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 682
diff changeset
    96
+ I Exec  exec stalonetray --window-strut none --grow-gravity S --icon-gravity N --geometry 1x16-$((130+92+24))+0 
580
34b0b3232025 * Load Emacs and Firefox automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 579
diff changeset
    97
+ I Exec  exec emacs --name emacs-main
498
ee4c76abe7a8 Set aliases to common values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 497
diff changeset
    98
+ I Exec  exec m4_XTERM_MC(`mc-main1')
579
dd80d75353e4 Regroup MC invocation as simultaneously MC loading resukts coredump of one of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 575
diff changeset
    99
+ I Exec  exec goldendict
580
34b0b3232025 * Load Emacs and Firefox automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 579
diff changeset
   100
+ I Exec  exec firefox
498
ee4c76abe7a8 Set aliases to common values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 497
diff changeset
   101
+ I Exec  exec m4_XTERM_MC(`mc-main2')
495
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   102
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   103
# Run after each restart.
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   104
DestroyFunc RestartFunction
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   105
AddToFunc RestartFunction
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   106
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   107
# Run at sturtup and after each restart.
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   108
# All fvwm modules exit after restart Fvwm, so you must put they there.
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   109
DestroyFunc StartFunction
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   110
AddToFunc StartFunction
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   111
# + I Module FvwmDebug --xconsole
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   112
# + I KillModule FvwmDebug
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   113
# + I Module FvwmGtkDebug
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   114
# + I Module FvwmConsole
663
355f0d557506 Enable FvwmCommandS module for FvwmCommand utility in order to user REPL in
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 662
diff changeset
   115
+ I Module FvwmCommandS
495
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   116
+ I Module FvwmPager 0 4
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   117
+ I Module FvwmKbdd.pl
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   118
# Add next to load desktop image (must be .xpm or .png)
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   119
# + I Exec fvwm-root -r ~/tmp/MagicItemComp2_1280x1024.png
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   120
c922ed36372c Move startup section to top to allow subsequent 'AddToFunc' call without
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 494
diff changeset
   121
################################################################
527
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   122
# Window Styles.
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   123
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   124
Style * BorderWidth 6, HandleWidth 6
527
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   125
# NoDecorHint, OLDecor, MwmDecor
672
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   126
# MwmDecor remove border from transient windows (like Firefox network log) so you can't resize/close this windows.
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   127
Style * NoDecorHint
527
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   128
# MwmBorder, FvwmBorder, DepressableBorder, FirmBorder
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   129
Style * MwmBorder
679
2f1bbc7c70b6 MwmButtons
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 678
diff changeset
   130
# MwmButtons, FvwmButtons
2f1bbc7c70b6 MwmButtons
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 678
diff changeset
   131
Style * MwmButtons
527
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   132
# Mwm and Win style menus popup sub menus automatically and never overlap the parent menu.
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   133
# Available: Fvwm, Mwm, Win.
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   134
MenuStyle * Mwm
527
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   135
666
a7c2eb716b0d Set default font. Make title more narrow.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 664
diff changeset
   136
DefaultFont m4_MONOFONT
a7c2eb716b0d Set default font. Make title more narrow.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 664
diff changeset
   137
MenuStyle * Font m4_MONOFONT
a7c2eb716b0d Set default font. Make title more narrow.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 664
diff changeset
   138
672
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   139
Style * DecorateTransient
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   140
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   141
Style * TitleFormat %n «%c:%r»
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   142
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   143
DestroyDecor MyDecor
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   144
AddToDecor   MyDecor
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   145
+ TitleStyle LeftJustified Height 16
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   146
+ ButtonStyle 1 ActiveUp Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   147
+ ButtonStyle 1 ActiveDown Vector 4 30x30@1 60x60@1 60x30@4 30x60@1 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   148
+ ButtonStyle 1 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   149
+ ButtonStyle 3 ActiveUp Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   150
+ ButtonStyle 3 ActiveDown Vector 5 30x60@1 60x60@1 60x50@1 30x50@1 30x60@1 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   151
+ ButtonStyle 3 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   152
+ ButtonStyle 5 ActiveUp Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   153
+ ButtonStyle 5 ActiveDown Vector 7 30x30@1 30x60@1 60x60@1 60x30@1 30x30@1 30x35@1 60x35@1 -- Flat
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   154
+ ButtonStyle 5 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   155
Style * UseDecor MyDecor
672
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   156
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   157
################################################################
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   158
# Windows moving and resizing behaviour.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   159
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   160
# If during an interactive move the window or icon comes within proximity pixels of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   161
# another the window or icon, it is moved to make the borders adjoin.
669
b5e9b737a156 SnapAttraction SameType
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 668
diff changeset
   162
Style * SnapAttraction 10 SameType
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   163
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   164
Style * !Iconifiable
536
e3c5bc874640 This disable ResizeOpaque, which cause frequent redrawing of applications.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 535
diff changeset
   165
# This disable ResizeOpaque, which cause frequent redrawing of applications.
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   166
Style * ResizeOutline
532
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   167
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   168
# Default is TileCascadePlacement.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   169
Style * MinOverlapPlacement
680
69c9803b9364 Ignore PPosition hint. Many programs set PPosition to something obnoxious like 0,0 (upper left corner).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 679
diff changeset
   170
# Ignore PPosition hint. Many programs set PPosition to something obnoxious like 0,0 (upper left corner).
69c9803b9364 Ignore PPosition hint. Many programs set PPosition to something obnoxious like 0,0 (upper left corner).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 679
diff changeset
   171
Style * !UsePPosition
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   172
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   173
# Percentage of a page to scroll when the cursor hits the edge of a page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   174
# With 0 0 I can't scroll to other page by hitting edge, but can move app to another page!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   175
# With 100 100 by hitting edge I move to next page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   176
EdgeScroll 0 0
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   177
# Tells how hard it should be to change the desktop viewport by moving the mouse over the
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   178
# edge of the screen and how hard it should be to move a window over the edge of the screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   179
EdgeResistance 150
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   180
Style * EdgeMoveDelay 150
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   181
Style * EdgeMoveResistance 150
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   182
# Width or height of the invisible window that fvwm creates on the edges of the  screen  that
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   183
# are used for the edge scrolling feature.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   184
EdgeThickness 1
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   185
527
2ce044165a46 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 526
diff changeset
   186
################################################################
528
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   187
# Program Styles.
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   188
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   189
Style *            Icon app/x-32x32.xpm, \
528
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   190
                   MiniIcon app/x-flex-16x16.xpm
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   191
Style "XTerm"      Icon app/terminal-16x16.xpm, \
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   192
                   MiniIcon app/terminal-16x16.xpm
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   193
Style "rxvt"       Icon app/terminal-16x16.xpm, \
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   194
                   MiniIcon app/terminal-16x16.xpm
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   195
Style "mc-*"       Icon app/mc-16x16.xpm, \
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   196
                   MiniIcon app/mc-16x16.xpm
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   197
681
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   198
# Define places for autoloaded programs.
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   199
# StartsOnPage [desk [x y]]
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   200
Style "mc-main1"  StartsOnPage 0 1 0, SkipMapping
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   201
Style "mc-main2"  StartsOnPage 0 2 0, SkipMapping
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   202
# SkipMapping was not added to emacs to give focus it.
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   203
Style "emacs-main"  StartsOnPage 2 0 0
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   204
Style "Goldendict"  StartsOnPage 3 1 2, SkipMapping
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   205
Style "Iceweasel"  StartsOnPage 1 0 0, SkipMapping
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   206
Style "XClock"  !Title, Sticky, StaysOnTop, !Iconifiable, FixedPosition, FixedSize, WindowListSkip, CirculateSkip
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   207
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   208
# DestroyStyle "stalonetray"
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   209
Style "stalonetray" !Button 1, !Button 3, !Button 5
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   210
Style "stalonetray" StaysOnTop, Sticky, !Iconifiable
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   211
Style "stalonetray" FixedPosition, FixedSize
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   212
Style "stalonetray" WindowListSkip, CirculateSkip
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   213
Style "stalonetray" TitleFormat TRY
69df18cb005c Move program styles below common definitions to override common defaults.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 680
diff changeset
   214
528
88b13c857424 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 527
diff changeset
   215
################################################################
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   216
# Virtual Desktops.
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   217
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   218
DesktopSize 3x3
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   219
DesktopName 0 Main
400
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   220
DesktopName 1 Net
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   221
DesktopName 2 Work
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   222
DesktopName 3 Media
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   223
DesktopName 4 Games
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   224
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
   225
################################################################
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   226
# Focus Behavior.
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   227
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   228
ClickTime 350
667
6783c4cebbe9 Add docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 666
diff changeset
   229
# How many pixels to move in order to distinct click from drag.
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   230
MoveThreshold 3
537
2710d1dfdb7d Add comment.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 536
diff changeset
   231
# GrabFocusTransient, ClickToFocusRaises
687
38cec4256537 Get beck ClickToFocus as without it I cant move/resize/close Firefox Web
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 683
diff changeset
   232
Style * SloppyFocus, ClickToFocus
38cec4256537 Get beck ClickToFocus as without it I cant move/resize/close Firefox Web
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 683
diff changeset
   233
Style * !FPClickRaisesFocused, !FPClickRaisesUnfocused
38cec4256537 Get beck ClickToFocus as without it I cant move/resize/close Firefox Web
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 683
diff changeset
   234
Style * FPClickDecorRaisesFocused, FPClickIconRaisesFocused
38cec4256537 Get beck ClickToFocus as without it I cant move/resize/close Firefox Web
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 683
diff changeset
   235
Style * FPClickDecorRaisesUnfocused, FPClickIconRaisesUnfocused
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   236
682
fee328355849 Colormap is the one for the window that currently has the keyboard focus.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 681
diff changeset
   237
# Colormap is the one for the window that currently has the keyboard focus.
fee328355849 Colormap is the one for the window that currently has the keyboard focus.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 681
diff changeset
   238
ColormapFocus FollowsFocus
fee328355849 Colormap is the one for the window that currently has the keyboard focus.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 681
diff changeset
   239
513
76730b49f79e Destroy module configuration before defining it. Join module config with
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 512
diff changeset
   240
DestroyFunc MyFuncFocusWindow
76730b49f79e Destroy module configuration before defining it. Join module config with
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 512
diff changeset
   241
AddToFunc MyFuncFocusWindow
76730b49f79e Destroy module configuration before defining it. Join module config with
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 512
diff changeset
   242
+ I FlipFocus
76730b49f79e Destroy module configuration before defining it. Join module config with
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 512
diff changeset
   243
+ I WarpToWindow 50 50
76730b49f79e Destroy module configuration before defining it. Join module config with
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 512
diff changeset
   244
DestroyModuleConfig FvwmEvent-NewWindow
499
9e77ac0fc429 Focus to new windows automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 498
diff changeset
   245
*FvwmEvent-NewWindow: Cmd
512
86bcf15b2670 Add delay between 'MyFuncFocusWindow' calls to allow kill "bad" applications.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 509
diff changeset
   246
*FvwmEvent-NewWindow: Delay 1
499
9e77ac0fc429 Focus to new windows automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 498
diff changeset
   247
*FvwmEvent-NewWindow: StartDelay 10
9e77ac0fc429 Focus to new windows automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 498
diff changeset
   248
*FvwmEvent-NewWindow: add_window MyFuncFocusWindow
9e77ac0fc429 Focus to new windows automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 498
diff changeset
   249
516
65455fc0bbb5 Maximise some windows for convenience. Currently this is only 'Xpdf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 515
diff changeset
   250
DestroyFunc MyFuncStartMaximised
65455fc0bbb5 Maximise some windows for convenience. Currently this is only 'Xpdf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 515
diff changeset
   251
AddToFunc   MyFuncStartMaximised
569
1b7bd3006cf1 Maximise only main xpdf window. This prevent maximising of search window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 568
diff changeset
   252
+ I ThisWindow ("Xpdf", "win") Maximize True
516
65455fc0bbb5 Maximise some windows for convenience. Currently this is only 'Xpdf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 515
diff changeset
   253
DestroyModuleConfig FvwmEvent-StartMaximised
65455fc0bbb5 Maximise some windows for convenience. Currently this is only 'Xpdf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 515
diff changeset
   254
*FvwmEvent-StartMaximised: Cmd
65455fc0bbb5 Maximise some windows for convenience. Currently this is only 'Xpdf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 515
diff changeset
   255
*FvwmEvent-StartMaximised: add_window MyFuncStartMaximised
65455fc0bbb5 Maximise some windows for convenience. Currently this is only 'Xpdf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 515
diff changeset
   256
499
9e77ac0fc429 Focus to new windows automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 498
diff changeset
   257
AddToFunc StartFunction I Module FvwmEvent
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   258
# TODO: have problem with Emacs ediff frame.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   259
# AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
516
65455fc0bbb5 Maximise some windows for convenience. Currently this is only 'Xpdf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 515
diff changeset
   260
AddToFunc StartFunction I FvwmEvent FvwmEvent-StartMaximised
499
9e77ac0fc429 Focus to new windows automatically.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 498
diff changeset
   261
568
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   262
# Start on screen with pointer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   263
# Style * StartsOnScreen c
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 567
diff changeset
   264
570
290172cc7d1d Fix for broken Java based GUI.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 569
diff changeset
   265
# Fix for broken Java based GUI.
575
77da3f78d0d6 Add additional path for icons.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 573
diff changeset
   266
# Style "sun-awt-X11-*" MouseFocusClickRaises, Lenience
77da3f78d0d6 Add additional path for icons.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 573
diff changeset
   267
# Style "com-pb-*" MouseFocusClickRaises, Lenience
570
290172cc7d1d Fix for broken Java based GUI.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 569
diff changeset
   268
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
   269
################################################################
668
113f0511f5f2 Multi-monitor setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 667
diff changeset
   270
# Multi-monitor setup.
113f0511f5f2 Multi-monitor setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 667
diff changeset
   271
113f0511f5f2 Multi-monitor setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 667
diff changeset
   272
# Xinerama On
113f0511f5f2 Multi-monitor setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 667
diff changeset
   273
# XineramaPrimaryScreen 0
113f0511f5f2 Multi-monitor setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 667
diff changeset
   274
113f0511f5f2 Multi-monitor setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 667
diff changeset
   275
################################################################
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   276
# Screenshot Functions (uses ImageMagick).
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   277
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   278
m4_define(`m4_SCREENSHOTPATH', `$[HOME]/.screenshot')m4_dnl
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   279
m4_changequote(`<--', `-->')m4_dnl
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   280
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   281
DestroyFunc FvwmWindowScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   282
AddToFunc   FvwmWindowScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   283
+ I Exec import -window $[w.id] -quality 100 -silent \
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   284
         "m4_SCREENSHOTPATH/$[w.class]-`date +%F[%R]`.png"
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   285
405
3b7b3d154835 Make pause in 5 second before screenshot makes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 404
diff changeset
   286
# Remember there is 5 seconds pause before screenshot makes!
406
c3ea63f9192a Added info about alternative screenshot command.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 405
diff changeset
   287
# For alternative screenshot command with delay you may use:  scrot -d <sec> <file>
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   288
DestroyFunc FvwmDesktopScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   289
AddToFunc   FvwmDesktopScreenshot
405
3b7b3d154835 Make pause in 5 second before screenshot makes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 404
diff changeset
   290
+ I Exec import -window root -quality 100 -pause 5 -silent \
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   291
         "m4_SCREENSHOTPATH/Desktop-`date +%F-[%H:%M:%S]`.png"
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   292
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   293
DestroyFunc FvwmScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   294
AddToFunc   FvwmScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   295
+ I Exec import -quality 100 -silent \
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   296
         "m4_SCREENSHOTPATH/App-`date +%F-[%H:%M:%S]`.png"
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   297
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   298
m4_changequote`'m4_dnl
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   299
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
   300
################################################################
627
097c00353a15 Ignore num-lock as modifier.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 625
diff changeset
   301
# Modifier settings.
097c00353a15 Ignore num-lock as modifier.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 625
diff changeset
   302
097c00353a15 Ignore num-lock as modifier.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 625
diff changeset
   303
# L - caps-lock.
097c00353a15 Ignore num-lock as modifier.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 625
diff changeset
   304
# With XFree86 '2' usually is the num-lock modifier and '5' refers to the scroll-lock key.
097c00353a15 Ignore num-lock as modifier.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 625
diff changeset
   305
IgnoreModifiers L25
097c00353a15 Ignore num-lock as modifier.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 625
diff changeset
   306
097c00353a15 Ignore num-lock as modifier.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 625
diff changeset
   307
################################################################
526
7cae9bde2177 Join 2 logically related sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 525
diff changeset
   308
# Mouse binding.
355
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   309
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   310
DestroyFunc FvwmDeleteOrDestroy
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   311
AddToFunc   FvwmDeleteOrDestroy
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   312
+ C Delete
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   313
+ D Destroy
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   314
600
1ed09bc8a461 Maximise by fitting free space.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 582
diff changeset
   315
DestroyFunc FvwmSmartMaximize
1ed09bc8a461 Maximise by fitting free space.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 582
diff changeset
   316
AddToFunc   FvwmSmartMaximize
1ed09bc8a461 Maximise by fitting free space.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 582
diff changeset
   317
+ C Maximize 100 100
1ed09bc8a461 Maximise by fitting free space.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 582
diff changeset
   318
+ D Maximize grow grow
1ed09bc8a461 Maximise by fitting free space.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 582
diff changeset
   319
532
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   320
# Setup title-bar button actions.
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   321
Mouse 1 1 A FvwmDeleteOrDestroy
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   322
Mouse 1 3 A WindowShade
600
1ed09bc8a461 Maximise by fitting free space.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 582
diff changeset
   323
Mouse 1 5 A FvwmSmartMaximize
532
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   324
Mouse 2 5 A Maximize 100 0
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   325
Mouse 3 5 A Maximize 0 100
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   326
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   327
DestroyFunc FvwmMove
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   328
AddToFunc   FvwmMove
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   329
+ I Raise
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   330
+ M Move
355
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   331
+ D WindowShade
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   332
532
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   333
# Move windows by holding left mouse button on window title.
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   334
Mouse 1 T A FvwmMove
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   335
# Move windows by holding right mouse button on window title, borders or corners.
e76d00bc8ceb Don't allow iconification. Remove appropriated key bindings. Use shading to
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 531
diff changeset
   336
Mouse 3 FST A FvwmMove
371
fcd8b02fba87 Exchange code to clear view.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 370
diff changeset
   337
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
   338
################################################################
534
00fb2ca622e9 Disable extra information on WindowList.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 533
diff changeset
   339
# WindowList.
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   340
492
3afe78030216 Improve comment.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 484
diff changeset
   341
# Used by WindowList to raise selected windows and to pass focus to it.
366
3bcf71fa5017 Place mouse pointer in center of window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 365
diff changeset
   342
DestroyFunc WindowListFunc
3bcf71fa5017 Place mouse pointer in center of window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 365
diff changeset
   343
AddToFunc WindowListFunc
3bcf71fa5017 Place mouse pointer in center of window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 365
diff changeset
   344
+ I Iconify off
3bcf71fa5017 Place mouse pointer in center of window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 365
diff changeset
   345
+ I FlipFocus
3bcf71fa5017 Place mouse pointer in center of window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 365
diff changeset
   346
+ I Raise
538
aa373229d40f Backout 3c744a766120. Placing pointer under window pass focus to it.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 537
diff changeset
   347
# Place mouse pointer in center of window.
aa373229d40f Backout 3c744a766120. Placing pointer under window pass focus to it.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 537
diff changeset
   348
+ I WarpToWindow 50 50
366
3bcf71fa5017 Place mouse pointer in center of window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 365
diff changeset
   349
535
6c5fad0286d7 Sort by focus.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 534
diff changeset
   350
# Sort by focus.
677
e7b39008f2c9 Remove quotes from asterisk style name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 676
diff changeset
   351
Style * FPSortWindowlistByFocus
535
6c5fad0286d7 Sort by focus.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 534
diff changeset
   352
364
b49fffbffdf5 Prevent show long title.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 363
diff changeset
   353
# Prevent show long title.
670
714a8ad3b0a6 Show class and resource name in window title.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 669
diff changeset
   354
m4_define(`m4_WINLIST_CONF',`NoDeskSort, NoGeometryWithInfo, NoDeskNum, NoCurrentDeskTitle, CurrentAtEnd, MaxLabelWidth 80')m4_dnl
535
6c5fad0286d7 Sort by focus.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 534
diff changeset
   355
391
76862aba5f4f Define switch between aps.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 390
diff changeset
   356
# Define switch between aps.
610
3db3d6236d9c Release 'Super' key to Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 600
diff changeset
   357
# Key Tab A M WindowList Root c c m4_WINLIST_CONF, SelectOnRelease Meta_L
3db3d6236d9c Release 'Super' key to Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 600
diff changeset
   358
Key Tab A M WindowList Root c c m4_WINLIST_CONF, SelectOnRelease
534
00fb2ca622e9 Disable extra information on WindowList.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 533
diff changeset
   359
00fb2ca622e9 Disable extra information on WindowList.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 533
diff changeset
   360
################################################################
00fb2ca622e9 Disable extra information on WindowList.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 533
diff changeset
   361
# Key binding.
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   362
628
2aaa715ede72 Close window by LeftWin+F4 (delete window protocol).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 627
diff changeset
   363
# Close window by Alt+F4 (send SIGHUP).
369
2722227ca710 Split mouse and keyboard binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 368
diff changeset
   364
Key F4 A M Delete
628
2aaa715ede72 Close window by LeftWin+F4 (delete window protocol).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 627
diff changeset
   365
# Close window by LeftWin+F4 (delete window protocol).
2aaa715ede72 Close window by LeftWin+F4 (delete window protocol).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 627
diff changeset
   366
DestroyFunc MyClose
2aaa715ede72 Close window by LeftWin+F4 (delete window protocol).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 627
diff changeset
   367
AddToFunc MyClose
2aaa715ede72 Close window by LeftWin+F4 (delete window protocol).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 627
diff changeset
   368
+ I ThisWindow Close
2aaa715ede72 Close window by LeftWin+F4 (delete window protocol).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 627
diff changeset
   369
Key F4 W 3 MyClose
355
02ae380f0a1f Define key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 354
diff changeset
   370
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   371
# Make screenshot.
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   372
Key Print A N  FvwmScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   373
Key Print A S  FvwmDesktopScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   374
415
1293620d4bd4 Reduce process count by 'exec' (this replace 'sh -c $CMD' with '$CMD').
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 413
diff changeset
   375
Key Scroll_Lock A N Exec  exec xscreensaver-command -activate
398
2dbb13c25074 Bind screensaver to Scroll_Lock.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 395
diff changeset
   376
400
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   377
# Similar to Vi hjkl:
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   378
#
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   379
#              F11 - up
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   380
# F9  - left              F12 - right
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   381
#             F10 - down
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   382
403
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   383
DestroyFunc myGotoPage
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   384
AddToFunc myGotoPage
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   385
+ I Next (CirculateHit, FvwmPager, Shaded) WindowShade "False"
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   386
+ I GotoPage $0 $1
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   387
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   388
Key F9 A C myGotoPage -1p -0p
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   389
Key F12 A C myGotoPage +1p +0p
400
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   390
408
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   391
# Move across page up, if no page more go to last page of prev desk.
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   392
DestroyFunc myGotoPageUp
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   393
AddToFunc myGotoPageUp
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   394
+ I Next (CirculateHit, FvwmPager, Shaded) WindowShade "False"
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   395
+ I SetEnv fvwm_page_ny $[page.ny]
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   396
+ I Test (EnvMatch fvwm_page_ny 0) Nop
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   397
+ I TestRc (Match) GotoDesk -1 0 4
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   398
+ I TestRc (Match) GotoPage +0p 2
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   399
+ I TestRc (NoMatch) GotoPage +0p -1p
509
08ee4edb6e45 Use "UnSetEnv" instead of special form of "SetEnv" (with empty value).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 508
diff changeset
   400
+ I UnSetEnv fvwm_page_ny
408
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   401
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   402
Key F11 A C myGotoPageUp
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   403
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   404
# Move across page down, if no page more go to first page of next desk.
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   405
DestroyFunc myGotoPageDown
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   406
AddToFunc myGotoPageDown
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   407
+ I Next (CirculateHit, FvwmPager, Shaded) WindowShade "False"
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   408
+ I SetEnv fvwm_page_ny $[page.ny]
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   409
+ I Test (EnvMatch fvwm_page_ny 2) Nop
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   410
+ I TestRc (Match) GotoDesk +1 0 4
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   411
+ I TestRc (Match) GotoPage +0p 0
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   412
+ I TestRc (NoMatch) GotoPage +0p +1p
509
08ee4edb6e45 Use "UnSetEnv" instead of special form of "SetEnv" (with empty value).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 508
diff changeset
   413
+ I UnSetEnv fvwm_page_ny
408
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   414
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   415
Key F10 A C myGotoPageDown
921ef98095c2 Move across page up/down, if no page more go to last/first page of prev/next
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 407
diff changeset
   416
400
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   417
Key F9 A S CursorMove -50p +0p
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   418
Key F10 A S CursorMove +0p +50p
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   419
Key F11 A S CursorMove +0p -50p
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   420
Key F12 A S CursorMove +50p +0p
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   421
434
c66a176a8af9 Switch input method.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 433
diff changeset
   422
# Switch input method.
478
2913a8a1a474 Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 477
diff changeset
   423
Key 1 A 3 SendToModule FvwmKbdd.pl kbdd 0
2913a8a1a474 Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 477
diff changeset
   424
Key 2 A 3 SendToModule FvwmKbdd.pl kbdd 1
2913a8a1a474 Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 477
diff changeset
   425
Key 3 A 3 SendToModule FvwmKbdd.pl kbdd 2
434
c66a176a8af9 Switch input method.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 433
diff changeset
   426
435
f6e23b5bf73f Win+R like in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 434
diff changeset
   427
# Win+R like in Windows.
f6e23b5bf73f Win+R like in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 434
diff changeset
   428
Key R A 3 Exec exec gmrun
582
3412c9885616 Lock the computer by xscreensaver.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 581
diff changeset
   429
# Win+L like in Windows (lock the computer).
3412c9885616 Lock the computer by xscreensaver.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 581
diff changeset
   430
Key L A 3 Exec exec xscreensaver-command -lock
435
f6e23b5bf73f Win+R like in Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 434
diff changeset
   431
440
fa13c7909c1c Scrolling by keyboard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 439
diff changeset
   432
Key Page_Up A 3 Exec xdotool click 4
fa13c7909c1c Scrolling by keyboard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 439
diff changeset
   433
Key Page_Down A 3 Exec xdotool click 5
fa13c7909c1c Scrolling by keyboard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 439
diff changeset
   434
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
   435
################################################################
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   436
# Menu.
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   437
395
db04a32cc3eb Added comment about "/Debian" menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 394
diff changeset
   438
# Read generated by update-menu "/Debian" menu.
db04a32cc3eb Added comment about "/Debian" menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 394
diff changeset
   439
# To add own menu items create proper ~/.menu/app-name file and run update-menu.
db04a32cc3eb Added comment about "/Debian" menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 394
diff changeset
   440
# About this you can rean in /usr/share/doc/menu/menu.txt.gz.
426
bb3292034150 Read system wide menu for '/Debian'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 425
diff changeset
   441
Read /etc/X11/fvwm/menudefs.hook quiet
447
2ae9f5b99d89 Example how to load Debian user local menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 442
diff changeset
   442
# Read $[FVWM_USERDIR]/menudefs.hook quiet
394
53907fe3aa2b Read generated update-menu "/Debian" menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 392
diff changeset
   443
567
3d6277e853d7 Create MyDev menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 555
diff changeset
   444
DestroyMenu MenuMy
3d6277e853d7 Create MyDev menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 555
diff changeset
   445
AddToMenu   MenuMy "My Menu" Title
540
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   446
+ &HTop%/usr/share/app-install/icons/htop.png%  Exec  exec xterm -name htop -title HTop -geometry +10+10 -e sudo htop
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   447
+ &Emacs%emacs.png%  Exec  exec emacs
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   448
+ &Firefox%iceweasel.png%  Exec  exec firefox
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   449
+ &VLC%vlc.png%  Exec  exec vlc
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   450
+ &Skype%skype.png%  Exec  exec skype
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   451
+ &Goldendict%goldendict.png%  Exec  exec goldendict
415
1293620d4bd4 Reduce process count by 'exec' (this replace 'sh -c $CMD' with '$CMD').
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 413
diff changeset
   452
+ xkill           Exec  exec xkill
567
3d6277e853d7 Create MyDev menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 555
diff changeset
   453
3d6277e853d7 Create MyDev menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 555
diff changeset
   454
DestroyMenu MenuMyDev
3d6277e853d7 Create MyDev menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 555
diff changeset
   455
AddToMenu   MenuMyDev "My Dev Menu" Title
647
f1bc699634fb Rename Firefox devel profile.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 631
diff changeset
   456
+ &Firefox%iceweasel.png% Exec exec firefox -no-remote -P devel
567
3d6277e853d7 Create MyDev menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 555
diff changeset
   457
+ &Netbeans%netbeans.png%  Exec  exec $(ls /opt/*/bin/netbeans 2>/dev/null | tail -n 1; [[ ${PIPESTATUS[0]} -gt 0 ]] && command -v netbeans)
3d6277e853d7 Create MyDev menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 555
diff changeset
   458
+ "SQL Developer"  Exec  exec $(ls /opt/*/sqldeveloper.sh 2>/dev/null | tail -n 1; [[ ${PIPESTATUS[0]} -gt 0 ]] && echo xmessage "Can't find 'SQL Developer' in /opt")
625
75f30c1c42cb Add Squirrel to menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 610
diff changeset
   459
+ "Squirrel"  Exec  exec $(ls /opt/*/squirrel-sql.sh 2>/dev/null | tail -n 1; [[ ${PIPESTATUS[0]} -gt 0 ]] && echo xmessage "Can't find 'Squirrel' in /opt")
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   460
412
76f7aeed7685 Start htop "mazimised". Drawback - you can not make it smaller.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 411
diff changeset
   461
# Drawback - you can not make it smaller.
76f7aeed7685 Start htop "mazimised". Drawback - you can not make it smaller.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 411
diff changeset
   462
Style "htop" MinWindowSize 98 98
76f7aeed7685 Start htop "mazimised". Drawback - you can not make it smaller.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 411
diff changeset
   463
572
48461a29569a Add ability to select window for FvwmIdent when non-root window selected.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 571
diff changeset
   464
DestroyFunc MyIdent
48461a29569a Add ability to select window for FvwmIdent when non-root window selected.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 571
diff changeset
   465
AddToFunc MyIdent
48461a29569a Add ability to select window for FvwmIdent when non-root window selected.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 571
diff changeset
   466
+ I WindowId root Focus
48461a29569a Add ability to select window for FvwmIdent when non-root window selected.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 571
diff changeset
   467
+ I Module FvwmIdent
48461a29569a Add ability to select window for FvwmIdent when non-root window selected.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 571
diff changeset
   468
502
0b6bc512493f Rename menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 501
diff changeset
   469
DestroyMenu MenuWindowOperations
0b6bc512493f Rename menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 501
diff changeset
   470
AddToMenu   MenuWindowOperations "Window Operations" Title
573
c64e36fe80dd Move FvwmIdent comment to to as most used.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 572
diff changeset
   471
+ "Identify%menu/window-identify.xpm%"  MyIdent
c64e36fe80dd Move FvwmIdent comment to to as most used.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 572
diff changeset
   472
+ "" Nop
581
6fc8d8f66917 Move close, delete, destroy command in menu to top as frequency used.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 580
diff changeset
   473
+ "Close%menu/window-close.xpm%"  Close
6fc8d8f66917 Move close, delete, destroy command in menu to top as frequency used.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 580
diff changeset
   474
+ "Delete%menu/window-delete.xpm%"  Delete
6fc8d8f66917 Move close, delete, destroy command in menu to top as frequency used.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 580
diff changeset
   475
+ "Destroy%menu/window-destroy.xpm%"  Destroy
6fc8d8f66917 Move close, delete, destroy command in menu to top as frequency used.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 580
diff changeset
   476
+ "" Nop
582
3412c9885616 Lock the computer by xscreensaver.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 581
diff changeset
   477
+ "XScreensaver%app/xscreensaver-16x16.xpm%" Exec xscreensaver-command -lock
3412c9885616 Lock the computer by xscreensaver.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 581
diff changeset
   478
+ "" Nop
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   479
+ "Move%menu/window-move.xpm%"  Move
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   480
+ "Resize%menu/window-resize.xpm%"  Resize
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   481
+ "(De)Iconify%menu/window-iconify.xpm%"  Iconify
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   482
+ "(Un)Maximize%menu/window-maximize.xpm%"  Maximize
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   483
+ "(Un)Shade%menu/window-shade.xpm%"  WindowShade
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   484
+ "(Un)Stick%menu/window-stick.xpm%"  Stick
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   485
+ "" Nop
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   486
+ "StaysOnTop%menu/window-raise.xpm%"  Pick (CirculateHit) Layer 0 6
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   487
+ "Layer +1%menu/window-raise.xpm%"  Pick (CirculateHit) Layer +1
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   488
+ "StaysPut%menu/window.xpm%"  Pick (CirculateHit) Layer 0 4
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   489
+ "Layer -1%menu/window-lower.xpm%"  Pick (CirculateHit) Layer -1
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   490
+ "StaysOnBottom%menu/window-lower.xpm%"  Pick (CirculateHit) Layer 0 2
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   491
+ "" Nop
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   492
+ "%menu/window.xpm%App Screenshot"  Pick (CirculateHit) FvwmWindowScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   493
+ "Screenshot" FvwmDesktopScreenshot
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   494
502
0b6bc512493f Rename menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 501
diff changeset
   495
Mouse 3 R A Menu MenuWindowOperations
381
8e5aae66f57f Added "Window Operation Menu" from "FVWM Beginners Guide" by Jaimos F Skriletz.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 380
diff changeset
   496
501
65ccbb240daa Include 'FvwmWindowOpsMenu' in my Alt+F1 key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 500
diff changeset
   497
# Use interactive bash mode to read profile (~/.bashrc) to override default
65ccbb240daa Include 'FvwmWindowOpsMenu' in my Alt+F1 key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 500
diff changeset
   498
# value of PS1.
502
0b6bc512493f Rename menu.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 501
diff changeset
   499
AddToMenu MenuMyRoot Menu Title
520
af66efcdc75d Add icons for main menu. Add submenu icon.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 519
diff changeset
   500
+ "Xterm%app/terminal-16x16.xpm%"  Exec  exec xterm -e bash -i
af66efcdc75d Add icons for main menu. Add submenu icon.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 519
diff changeset
   501
+ "Mc%app/mc-16x16.xpm%"  Exec  exec m4_XTERM_MC(`mc-secondary')
af66efcdc75d Add icons for main menu. Add submenu icon.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 519
diff changeset
   502
+ ""  Nop
540
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   503
+ &Debian%menu/submenu-16x16.xpm%  Popup "/Debian"
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   504
+ &My%menu/submenu-16x16.xpm%  Popup MenuMy
678
d7f7129c5db7 Remove ambiguous menu hot key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 677
diff changeset
   505
+ MyDev%menu/submenu-16x16.xpm%  Popup MenuMyDev
540
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   506
+ &Window%menu/submenu-16x16.xpm%  Popup MenuWindowOperations
790b9f7a52ed Add hot-key for the some menu item.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 539
diff changeset
   507
+ &Fvwm%menu/submenu-16x16.xpm%  Popup MenuFvwmRoot
520
af66efcdc75d Add icons for main menu. Add submenu icon.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 519
diff changeset
   508
+ ""  Nop
501
65ccbb240daa Include 'FvwmWindowOpsMenu' in my Alt+F1 key binding.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 500
diff changeset
   509
504
edf0f2cd2039 Move key bindings to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 503
diff changeset
   510
Key F1 A M Menu MenuMyRoot Root c c
edf0f2cd2039 Move key bindings to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 503
diff changeset
   511
Mouse 1 R A Menu MenuMyRoot Nop
edf0f2cd2039 Move key bindings to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 503
diff changeset
   512
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
   513
################################################################
525
f6e3baea760f Reorder code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 524
diff changeset
   514
# FvwmTaskBar.
f6e3baea760f Reorder code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 524
diff changeset
   515
f6e3baea760f Reorder code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 524
diff changeset
   516
Style "FvwmTaskBar" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable
f6e3baea760f Reorder code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 524
diff changeset
   517
f6e3baea760f Reorder code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 524
diff changeset
   518
################################################################
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   519
# FvwmPager.
387
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   520
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   521
# No any button on pager.
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   522
Style "FvwmPager" !Button 1, !Button 3, !Button 5, \
389
6cb69dd7823a Forget put comma.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 388
diff changeset
   523
         StaysOnTop, Sticky, FixedPosition, FixedSize, !Iconifiable, \
388
38c75446897a Pager always on top.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 387
diff changeset
   524
         WindowListSkip, CirculateSkip
673
5c3cb0a5b165 Use short title for FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 672
diff changeset
   525
Style "FvwmPager" TitleFormat %n
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   526
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   527
m4_define(`m4_PagerInactiveRGB', `rgb:c0/c0/c0')m4_dnl
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   528
m4_define(`m4_PagerActiveRGB', `rgb:ef/df/bdc')m4_dnl
357
9d9ad236b557 Define some color for FvwmPager
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 356
diff changeset
   529
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   530
DestroyModuleConfig FvwmPager: *
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   531
*FvwmPager: Back m4_PagerInactiveRGB
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   532
*FvwmPager: BalloonBack m4_PagerActiveRGB
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   533
*FvwmPager: Hilight  m4_PagerActiveRGB
400
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   534
*FvwmPager: Geometry 80x500-0+0
484
cf2e6576575c Use FvwmM4 module to avoid creating env vars. Use -m4-prefix
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 479
diff changeset
   535
*FvwmPager: WindowColors m4_PagerInactiveRGB m4_PagerInactiveRGB m4_PagerActiveRGB m4_PagerActiveRGB
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   536
*FvwmPager: Font "xft:Sans:Bold:pixelsize=12:minspace=True:antialias=True"
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   537
*FvwmPager: Balloons All
672
c7b31ee5331b Group window styles configuration to common place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 671
diff changeset
   538
*FvwmPager: BalloonFont m4_MONOFONT
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   539
*FvwmPager: MiniIcons
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   540
*FvwmPager: UseSkipList
400
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   541
*FvwmPager: LabelsAbove
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   542
# As I use only columns row count calculated automatically.
9348e1ab74e8 Increase number of desktop. Added shortcut to move across desktops and pages
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
   543
# *FvwmPager: Rows 5
353
6d29cd30411c Move pager to left.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 352
diff changeset
   544
*FvwmPager: Columns 1
346
fe066283fced Use home config instead work.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   545
494
6f3882ab9918 Switch to more consistent and convenient sectioning style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 493
diff changeset
   546
################################################################
387
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   547
# FvwmAuto.
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   548
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   549
# The autohiding functions.
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   550
# From http://fvwm.org/documentation/faq/#toc_7.17
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   551
# See question "Autohiding FvwmButtons or other windows".
493
82ee1eb00277 Add DestroyFunc to each AddToFunc. Improve comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 492
diff changeset
   552
DestroyFunc autohide
387
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   553
AddToFunc autohide
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   554
+ I ThisWindow ($0) Deschedule $[w.id]
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   555
+ I ThisWindow ($0) KeepRc ThisWindow (shaded) WindowShade off
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   556
+ I TestRc (!Match) All ($0, !shaded) autohide_hide $1 $2
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   557
493
82ee1eb00277 Add DestroyFunc to each AddToFunc. Improve comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 492
diff changeset
   558
DestroyFunc autohide_hide
387
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   559
AddToFunc autohide_hide
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   560
+ I Schedule $0 $[w.id] WindowShade $1
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   561
+ I Schedule $0 $[w.id] Deschedule $[w.id]
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   562
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   563
# Add the windows you want to autohide
493
82ee1eb00277 Add DestroyFunc to each AddToFunc. Improve comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 492
diff changeset
   564
DestroyFunc enter_handler
387
c3da331f67b9 Hide FvwmPager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 386
diff changeset
   565
AddToFunc enter_handler
403
41ab6a23ab00 Unhide FvwmPager when moves with keys. Make autohide time longer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 402
diff changeset
   566
+ I autohide FvwmPager 1000 N
675
c4512322cc85 Add tray to desktop.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 674
diff changeset
   567
+ I autohide stalonetray 1000 N
497
71ace7e991aa Move FvwmAuto setting to single place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 496
diff changeset
   568
71ace7e991aa Move FvwmAuto setting to single place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 496
diff changeset
   569
AddToFunc StartFunction I Module FvwmAuto 1 -menter enter_handler
71ace7e991aa Move FvwmAuto setting to single place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 496
diff changeset
   570
524
867202582c35 Add support for Emacs outline minor mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 523
diff changeset
   571
# Local variables:
867202582c35 Add support for Emacs outline minor mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 523
diff changeset
   572
# mode: outline-minor
867202582c35 Add support for Emacs outline minor mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 523
diff changeset
   573
# outline-regexp: "#\\{64\\}\n# "
867202582c35 Add support for Emacs outline minor mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 523
diff changeset
   574
# outline-heading-end-regexp: "\\.\n"
867202582c35 Add support for Emacs outline minor mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 523
diff changeset
   575
# End: