Project

General

Profile

Dock » History » Version 1

Per Amundsen, 04/09/2022 12:31 AM

1 1 Per Amundsen
_Added in 4.3_
2
3
*/dock [-ablrsNtu] [size] <@window>*
4
5
Docks a window as a [[Monitor_Panels|Monitor Panel]].
6
7
*Switches*
8
9
-a - Append to any other dock panel on the specified dock side.
10
-b - Dock to the bottom.
11
-l - Dock to the left.
12
-r - Dock to the right.
13
-sN - Used with -a to split the appending panel into two. (0 = add at the beginning, 1 = add at the end)
14
-t - Dock to the top.
15
-u - Undocks/restores the @window to a regular window.
16
17
*Parameters*
18
19
[size] - Width of the new panel if docking a new top/bottom panel, height of the panel if docking a new left/right panel.
20
<@window> - The window to dock.
21
22
*Example*
23
24
<pre>
25
alias testdock {
26
  ; Create a custom window.
27
  window @test
28
29
  ; Dock the custom window as a monitor panel to the left side, appending if there is any other panels.
30
  dock -al @test
31
32
  ; Restores the custom window as a normal window.
33
  dock -u @test
34
35
  ; Docks the custom window as a monitor panel to the top, ignoring any current panels.
36
  dock -t @test
37
}
38
</pre>
39
40
-