1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
# Menus for window buttons
# This the same as the 'Window-Buttons' file, except that it provides
# functions for vertically-aligned desktop pages.
# Usage:
#
# Mouse (mbutton#) (button#) (mod) Window-Button-Function (Button#) (menu) (function)
#
# Where:
# mbutton# - number of the mouse button (0 - all buttons, 1 - left button,
# 2 - middle button, 3 - right button)
# button# - number of the window title button, 0-9
# mod - modifier, see ~/.fvwm/functions/Keyboard-Modifiers
# Button# - number of the window title button, Button0-Button9
# menu - name of the menu opened on the mouse hold
# function - function executed after mouse click
# Wrapper functions for window decorations
DestroyFunc Window-MoveToPage-Forward
AddToFunc Window-MoveToPage-Forward
+ I MoveToPage-Down
DestroyFunc Window-MoveToPage-Backward
AddToFunc Window-MoveToPage-Backward
+ I MoveToPage-Up
DestroyFunc Window-WarpToPage-Forward
AddToFunc Window-WarpToPage-Forward
+ I WarpToPage-Down
DestroyFunc Window-WarpToPage-Backward
AddToFunc Window-WarpToPage-Backward
+ I WarpToPage-Up
DestroyFunc Window-Button-Function
AddToFunc Window-Button-Function
+ H Popup $1 $0 0 100
+ C $2 $3 $4 $5 $6 $7 $8 $9
DestroyMenu /Window-Menu-Close
AddToMenu /Window-Menu-Close
+ '$[gt.Iconify]' Window-Iconify
+ '$[gt.Close]' Close
+ '$[gt.Destroy]' Destroy
+ "" Nop
+ '$[gt.Identify]' FvwmIdent
DestroyMenu /Window-Menu-Maximize
AddToMenu /Window-Menu-Maximize
+ '$[gt.Maximize]' Maximize
+ '$[gt.Maximize horizontally]' Maximize 100 0
+ '$[gt.Maximize vertically]' Maximize 0 100
+ "" Nop
+ '$[gt.Take all free space]' Maximize grow grow
+ '$[gt.Take all horizontal space]' Maximize grow 0
+ '$[gt.Take all vertical space]' Maximize 0 grow
+ "" Nop
+ '$[gt.Fullscreen]' Fullscreen
DestroyMenu /Window-Menu-Layer
AddToMenu /Window-Menu-Layer
+ '$[gt.Stay raised]' Layer 0 5
+ '$[gt.Normal mode]' Layer 0 4
+ '$[gt.Stay lowered]' Layer 0 3
+ '$[gt.Stick]' Stick
+ "" Nop
+ '$[gt.Refresh]' RefreshWindow
DestroyMenu /Window-Menu-Page
AddToMenu /Window-Menu-Page
+ DynamicPopupAction Function /Window-Menu-Page-generator
DestroyFunc /Window-Menu-Page-generator
AddToFunc /Window-Menu-Page-generator
+ I DestroyMenu recreate /Window-Menu-Page
+ I AddToMenu /Window-Menu-Page '$[gt.Move to upper page]' Window-MoveToPage-Backward
+ I AddToMenu /Window-Menu-Page '$[gt.Move to previous page]' MoveToPage-Focus prev
+ I AddToMenu /Window-Menu-Page '$[gt.Move to lower page]' Window-MoveToPage-Forward
+ I AddTomenu /Window-Menu-Page "" Nop
+ I AddToMenu /Window-Menu-Page '$[gt.Jump to upper page]' Window-WarpToPage-Backward
+ I AddToMenu /Window-Menu-Page '$[gt.Jump to previous page]' WarpToPage prev
+ I AddToMenu /Window-Menu-Page '$[gt.Jump to lower page]' Window-WarpToPage-Forward
+ I AddToMenu /Window-Menu-Page "" Nop
+ I PipeRead 'for i in `seq 0 $(($[desk.pagesy]-1))` ; do echo "AddToMenu /Window-Menu-Page \'$[gt.Move to page] $(($i+1))\' MoveToPage 0 $i" ; done'
# Combined version of menu for window styles other than FVWM-Crystal
DestroyMenu /Window-Menu
AddToMenu /Window-Menu
+ '$[gt.Iconify]' Window-Iconify
+ '$[gt.Stick]' Stick
+ '$[gt.Stay raised]' Layer 0 5
+ '$[gt.Normal mode]' Layer 0 4
+ '$[gt.Fullscreen]' Fullscreen
+ "" Nop
+ '$[gt.Move to upper page]' Window-MoveToPage-Backward
+ '$[gt.Move to lower page]' Window-MoveToPage-Forward
+ "" Nop
+ '$[gt.Identify]' FvwmIdent
+ '$[gt.Close]' Close
# vim:ft=fvwm
|