-
Notifications
You must be signed in to change notification settings - Fork 0
/
f.mouse
143 lines (121 loc) · 3.92 KB
/
f.mouse
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#key bindings {{{1
# Handle some Mouse bindings now...
# Recall that mouse formats look like this:
#
# +------------+
# | || || || |
# | |
# +------------+
# 1 3 2
# Binding Functions
#
# "I" stands for Immediate
# "M" stands for Motion
# "C" stands for Click
# "H" stands for Hold
# "D" stands for Double Click
# ---------------------------------------------------------------------------
# Contexts:
# R = Root Window rrrrrrrrrrrrrrrrrrrrrr
# W = Application Window rIrrrrFSSSSSSSSSFrrrrr
# F = Frame Corners rrrrrrS13TTTT642Srrrrr
# S = Frame Sides rIrrrrSwwwwwwwwwSrrrrr
# T = Title Bar rrrrrrSwwwwwwwwwSrrrrr
# I = Icon rIrrrrFSSSSSSSSSFrrrrr
# rrrrrrrrrrrrrrrrrrrrrr
# Numbers are buttons: 1 3 5 7 9 0 8 6 4 2
#
# Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
# ---------------------------------------------------------------------------
#definitions hint:
#Key / Mouse Button Context Modifiers Function
#Defines a mouse binding, or removes the binding if Function is
#'-'. Button is the mouse button number. If Button is zero then any
#button performs the specified function.
#
#Context
# 'R' for the root window,
# 'W' for an application window,
# 'D' for a desktop application ,
# 'T' for a window title-bar,
# 'S' for a window side, top, or bottom bar,
# '[', ']','-' and '_' for the left, right, top or bottom side only,
# 'F' for a window frame (the corners),
# '<', '^', '>' and 'v' for the top left, top right, bottom right or bottom left corner,
# 'I' for an Icon window,
# '0' through '9' for title-bar buttons,
# 'A' is for any context.
#
#Modifiers 'N' for no modifiers, 'C' for control, 'S' for shift, 'M' for Meta,
# 'L' for Caps-Lock, 'A' for any modifier, 1-5 mod1 through mod5
# modifier 'L' is ignored (see IgnoreModifiers)
Mouse 1 1 A DestroyOnHold
Mouse 3 1 A Menu MenuFvwmWindowOps
Mouse 3 W 4 Menu MenuFvwmWindowOps
Mouse 1 3 A MaximizeFunc
Mouse 1 5 A Iconify
Mouse 3 5 A Thumbnail
Mouse 1 FSW M FuncFvwmRaiseLowerX Move
Mouse 1 T A MaximizeTitleBarFunc
Mouse 3 T A TitleRightClick
Mouse 4 FSTW S Exec exec transset-df --min 0.1 -p --dec 0.2
Mouse 5 FSTW S Exec exec transset-df -p --inc 0.1
# Mouse 1 I A PlaceIcon
# Mouse 1 1 A Menu MenuFvwmWindowOps
# Mouse 1 2 A close
# Mouse 2 R A WindowList
# Mouse 1 4 A Max
# Mouse 3 4 A Maximize2
# Mouse 2 T A CentreWindow 0 0 Animated
# Mouse 1 6 A Iconify
# Mouse 4 T A WindowShade true
# Mouse 5 T A WindowShade false
# Mouse 3 T A RaiseAndResize
# Mouse 4 R A WheelScroll down
# Mouse 5 R A WheelScroll up
# Mouse 3 R A Menu MenuFvwmRoot
# workspace scrolling
Mouse 4 R A Scroll 100 100
Mouse 5 R A Scroll -100 -100
#####
# Name: DestroyOnHold
# Bound: Titlebar Button 2 (X)
# Purpose: When clicked, Raise the window Immediately.
# If the button is pressed and released, Close the Window. If it is pressed
# and held, Destroy it, and issue a Beep to confirm.
#
# There is a 100ms delay before issuing `Close` so I have a chance to see the
# animation when the button changes from ActiveDown to ActiveUp :).
#
#################
DestroyFunc DestroyOnHold
AddToFunc DestroyOnHold I Raise
+ C Schedule 100 Close
+ H Destroy
+ H Beep
DestroyFunc MaximizeFunc
AddToFunc MaximizeFunc
+ C Maximize
+ D Maximize ewmhiwa True
+ M Nop
DestroyFunc MaximizeTitleBarFunc
AddToFunc MaximizeTitleBarFunc
+ I Raise
+ D Maximize ewmhiwa
+ M Move
DestroyFunc TitleRightClick
AddToFunc TitleRightClick
+ C Menu menu_WindowOps
+ M ResizeFunc
AddToFunc ResizeFunc
+ I EWMHActivateWindowFunc
+ I Resize
DestroyFunc FvwmSend&Go
AddToFunc FvwmSend&Go
+ I MoveToPage wrapx 1p 1
+ I GoToPage wrapx 1p 1
DestroyFunc FuncMoveCenter
AddToFunc FuncMoveCenter
+ I AnimatedMove -50 -50
+ I WarpToWindow 50 50
+ I AnimatedMove m+0 m+0 Warp