8d83707cd933425b401c7c46c0cbccc298b1fa89
[grml-desktop.git] / etc / skel / .pekwm / mouse
1 FrameTitle {
2         ButtonRelease = "1" { Actions = "Raise; Focus; ActivateClient" }
3         ButtonRelease = "Mod1 1" { Actions = "Focus; Raise" }
4         ButtonRelease = "2" { Actions = "ActivateClient" }
5         ButtonRelease = "Mod4 3" { Actions = "Close" }
6         ButtonRelease = "3" { Actions = "ShowMenu Window" }
7         ButtonRelease = "4" { Actions = "NextInFrame" }
8         ButtonRelease = "5" { Actions = "PrevInFrame" }
9         ButtonRelease = "Mod1 4" { Actions = "SendToWorkspace Next; GotoWorkspace Next" }
10         ButtonRelease = "Mod1 5" { Actions = "SendToWorkspace Prev; GotoWorkspace Prev" }
11         ButtonRelease = "Ctrl Mod1 1" { Actions = "Focus; Raise True" }
12         DoubleClick = "2" { Actions = "Toggle Shaded" }
13         DoubleClick = "1" { Actions = "MaxFill True True" }
14         Motion = "1" { Threshold = "4"; Actions = "Move" }
15         Motion = "Mod1 1" { Threshold = "4"; Actions = "Move" }
16         Motion = "Mod4 1" { Threshold = "4"; Actions = "Move" }
17         Motion = "2" { Threshold = "4"; Actions = "GroupingDrag True" }
18         Motion = "Mod1 3" { Actions = "Resize" }
19         Enter = "Any Any" { Actions = "Focus" }
20 }
21
22 OtherTitle {
23         ButtonRelease = "1" { Actions = "Raise; Focus" }
24         ButtonRelease = "2" { Actions = "Focus" }
25         ButtonRelease = "3" { Actions = "Close" }
26         ButtonRelease = "Mod4 3" { Actions = "ShowMenu Window" }
27         ButtonRelease = "Mod1 4" { Actions = "SendToWorkspace Next; GotoWorkspace Next" }
28         ButtonRelease = "Mod1 5" { Actions = "SendToWorkspace Prev; GotoWorkspace Prev" }
29         Motion = "1" { Threshold = "4"; Actions = "Move" }
30         Motion = "Mod1 1" { Threshold = "4"; Actions = "Move" }
31         Motion = "Mod4 1" { Threshold = "4"; Actions = "Move" }
32         Enter = "Any Any" { Actions = "Focus" }
33 }
34
35 Border {
36         TopLeft     { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize TopLeft" } }
37         Top         { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Top" } }
38         TopRight    { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize TopRight" } }
39         Left        { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Left" } }
40         Right       { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Right" } }
41         BottomLeft  { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize BottomLeft" } }
42         Bottom      { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize Bottom" } }
43         BottomRight { Enter = "Any Any" { Actions = "Focus" }; ButtonPress = "1" { Actions = "Focus; Resize BottomRight" } }
44 }
45
46 ScreenEdge {
47         Down {
48                 Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Down" }
49                 ButtonRelease = "3" { Actions = "ShowMenu Root" }
50                 ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Down" }
51                 ButtonRelease = "2" { Actions = "ShowMenu Goto" }
52                 ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
53                 ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
54                 ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
55                 ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
56                 EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Down" }
57         }
58         Up {
59                 Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Up" }
60                 ButtonRelease = "3" { Actions = "ShowMenu Root" }
61                 ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Up" }
62                 ButtonRelease = "2" { Actions = "ShowMenu Goto" }
63                 ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
64                 ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
65                 EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Up" }
66         }
67         Left {
68                 Enter = "Mod1 Any" { Actions = "GoToWorkspace Left" }
69                 Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Left" }
70                 ButtonRelease = "3" { Actions = "ShowMenu Root" }
71                 ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Left" }
72                 ButtonRelease = "1" { Actions = "GoToWorkspace Left" }
73                 DoubleClick = "1" { Actions = "GoToWorkspace Left" }
74                 ButtonRelease = "2" { Actions = "ShowMenu Goto" }
75                 ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
76                 ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
77                 ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
78                 ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
79                 EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Left" }
80                 EnterMoving = "Any Any" { Actions = "WarpToWorkspace Left" }
81         }
82         Right {
83                 Enter = "Mod1 Any" { Actions = "GoToWorkspace Right" }
84                 Enter = "Mod4 Any" { Actions = "ViewportMoveDirection Right" }
85                 ButtonRelease = "3" { Actions = "ShowMenu Root" }
86                 ButtonRelease = "Mod4 1" { Actions = "ViewportMoveDirection Right" }
87                 ButtonRelease = "1" { Actions = "GoToWorkspace Right" }
88                 DoubleClick = "1" { Actions = "GoToWorkspace Right" }
89                 ButtonRelease = "2" { Actions = "ShowMenu Goto" }
90                 ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
91                 ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
92                 ButtonRelease = "Mod1 4" { Actions = "GoToWorkspace Next" }
93                 ButtonRelease = "Mod1 5" { Actions = "GoToWorkspace Prev" }
94                 EnterMoving = "Mod4 Any" { Actions = "WarpToViewport Right" }
95                 EnterMoving = "Any Any" { Actions = "WarpToWorkspace Right" }
96         }
97 }
98
99 Client {
100         ButtonPress = "1" { Actions = "Focus" }
101         # or ButtonPress = "1" { Actions = "Focus; Raise" } if you want windows to raise when you click on the client area.
102         ButtonRelease = "Mod1 1" { Actions = "Focus; Raise" }
103         ButtonRelease = "Mod4 1" { Actions = "Lower" }
104         ButtonRelease = "Mod1 4" { Actions = "SendToWorkspace Next; GotoWorkspace Next" }
105         ButtonRelease = "Mod1 5" { Actions = "SendToWorkspace Prev; GotoWorkspace Prev" }
106         ButtonRelease = "Ctrl Mod1 1" { Actions = "Focus; Raise True" }
107         Motion = "Mod1 1" { Actions = "Focus; Raise; Move" }
108         Motion = "Mod4 1" { Actions = "Focus; Raise; Move" }
109         Motion = "Mod1 2" { Threshold = "4"; Actions = "GroupingDrag True" }
110         Motion = "Mod1 3" { Actions = "Resize" }
111         Enter = "Any Any" { Actions = "Focus" }
112 }
113
114 Root {
115         ButtonRelease = "3" { Actions = "ShowMenu Root" }
116         ButtonRelease = "2" { Actions = "ShowMenu Goto" }
117         ButtonRelease = "4" { Actions = "GoToWorkspace Right" }
118         ButtonRelease = "5" { Actions = "GoToWorkspace Left" }
119         ButtonRelease = "1" { Actions = "HideAllMenus" }
120         Motion = "1" { Threshold = "10"; Actions = "ViewportMoveDrag" }
121 }
122
123 Menu {
124         Enter = "Any Any" { Actions = "Focus" }
125         Motion = "Mod1 1" { Actions = "Focus; Raise; Move" }
126 }
127
128 Other {
129         Enter = "Any Any" { Actions = "Focus" }
130         ButtonRelease = "3" { Actions = "Close" }
131         Motion = "1" { Actions = "Focus; Raise; Move" }
132         Motion = "Mod1 1" { Actions = "Focus; Raise; Move" }
133 }