-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcopyq-windowtiler.ini
312 lines (243 loc) · 9.07 KB
/
copyq-windowtiler.ini
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
[Commands]
1\Command="
bash:
xdotool windowunminimize $(xdotool getactivewindow)
"
1\GlobalShortcut=meta+pgup
1\Icon=\xf15b
1\IsGlobalShortcut=true
1\Name=window unminimize
10\Command="
bash:
wmctrl -ic <window_id>"
10\Enable=false
10\Icon=\xf15b
10\IsGlobalShortcut=true
10\Name=close window
11\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
#big
xdotool windowmove $focused_window_id 0 0
xdotool windowsize $focused_window_id $screenx $screeny"
11\GlobalShortcut=meta+num++
11\Icon=\xf15b
11\IsGlobalShortcut=true
11\Name=window max
12\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#top left
xdotool windowsize $focused_window_id $xpos $ysize
xdotool windowmove $focused_window_id $xpos 0"
12\GlobalShortcut=meta+num+9
12\Icon=\xf15b
12\IsGlobalShortcut=true
12\Name=window top right
13\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#top left
xdotool windowsize $focused_window_id $xpos $ysize
xdotool windowmove $focused_window_id 0 0"
13\GlobalShortcut=meta+num+7
13\Icon=\xf15b
13\IsGlobalShortcut=true
13\Name=window top left
14\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#center - small
xdotool windowmove $focused_window_id $xpos2 $ypos2
xdotool windowsize $focused_window_id $xpos $ypos"
14\GlobalShortcut=meta+num+5
14\Icon=\xf15b
14\IsGlobalShortcut=true
14\Name=window center
2\Command="
bash:
xdotool windowminimize $(xdotool getactivewindow)
"
2\GlobalShortcut=meta+pgdown
2\Icon=\xf15b
2\IsGlobalShortcut=true
2\Name=window minimize
3\Command="
bash:
focused_window_id=$(xdotool getwindowfocus)
#xdotool windowminimize $(xdotool getactivewindow)
#wmctrl -r \"windowname\" -b toggle,shaded
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#xdotool windowsize $focused_window_id 100% 100%
#wmctrl -ia $focused_window_id"
3\GlobalShortcut=meta+num+-
3\Icon=\xf15b
3\IsGlobalShortcut=true
3\Name=window minimize2
4\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
#appname=\"$(xprop -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d ' ' -f 5) WM_NAME)\"
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#side left
xdotool windowsize $focused_window_id $screenx $ypos
xdotool windowmove $focused_window_id 0 $ypos
"
4\GlobalShortcut=meta+num+2
4\Icon=\xf15b
4\IsGlobalShortcut=true
4\Name=window bottom full
5\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
#appname=\"$(xprop -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d ' ' -f 5) WM_NAME)\"
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#side left
xdotool windowmove $focused_window_id 0 0
xdotool windowsize $focused_window_id $screenx $ypos
"
5\GlobalShortcut=meta+num+8
5\Icon=\xf15b
5\IsGlobalShortcut=true
5\Name=window top full
6\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
#appname=\"$(xprop -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d ' ' -f 5) WM_NAME)\"
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#side left
xdotool windowsize $focused_window_id $xpos $screeny
xdotool windowmove $focused_window_id $xpos 0
"
6\GlobalShortcut=meta+num+6
6\Icon=\xf15b
6\IsGlobalShortcut=true
6\Name=window half right
7\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#side left
xdotool windowmove $focused_window_id 0 0
xdotool windowsize $focused_window_id $xpos $screeny"
7\GlobalShortcut=meta+num+4
7\Icon=\xf15b
7\IsGlobalShortcut=true
7\Name=window half left
8\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
focused_window_id=$(xdotool getwindowfocus)
#wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
#bottom right
xdotool windowmove $focused_window_id $xpos $ypos
xdotool windowsize $focused_window_id $xpos $ysize"
8\GlobalShortcut=meta+num+3
8\Icon=\xf15b
8\IsGlobalShortcut=true
8\Name=window bottom right
9\Command="
bash:
#appname=$(xdotool getwindowfocus getwindowname)
test=\"$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\\1/')\"
#window=$(xdotool search --onlyvisible --name $appname)
screenx=$(echo $test | cut -d 'x' -f 1)
screeny=$(echo $test | cut -d 'x' -f 2)
xpos=\"$(expr $screenx / 2 )\"
ypos=\"$(expr $screeny / 2)\"
xpos2=\"$(expr $xpos / 2)\"
ypos2=\"$(expr $ypos / 2)\"
#wmctrl -ir $focused_window_id -b remove,maximized_vert,maximized_horz
focused_window_id=$(xdotool getwindowfocus)
#center - small
xdotool windowmove $focused_window_id 0 $ypos
xdotool windowsize $focused_window_id $xpos $ysize
"
9\GlobalShortcut=meta+num+1
9\Icon=\xf15b
9\IsGlobalShortcut=true
9\Name=window bottom left
size=14