Dock » History » Version 13
  Per Amundsen, 04/10/2022 05:58 PM 
  
| 1 | 1 | Per Amundsen | _Added in 4.3_ | 
|---|---|---|---|
| 2 | |||
| 3 | 11 | Per Amundsen | */dock [-u] <@window>* | 
| 4 | */dock [-abloNpNrt] [w h] <@window>* | ||
| 5 | */dock [-cbloNpNrtu] [w h] <container> <@window>* | ||
| 6 | 1 | Per Amundsen | */dock [-bloNpNnrtu] [w h] <container> <panel> <@window>* | 
| 7 | 12 | Per Amundsen | */dock [-biloNpNrtu] [w h] <container panel tab> <@window>* | 
| 8 | 1 | Per Amundsen | |
| 9 | 4 | Per Amundsen | Docks/undocks a window as a [[Monitor_Panels|Monitor Panel]]. | 
| 10 | 1 | Per Amundsen | |
| 11 | 8 | Per Amundsen | _See also [[$dockpanels]]._ | 
| 12 | |||
| 13 | 1 | Per Amundsen | *Switches* | 
| 14 | |||
| 15 | 10 | Per Amundsen | -a - Adds the window to any other dock panel on the specified dock side as a new tab or creates a new container and panel. | 
| 16 | 7 | Per Amundsen | -b - Dock to the bottom. | 
| 17 | 8 | Per Amundsen | -i - Inserts the window into the specified side/container/panel/tab | 
| 18 | 1 | Per Amundsen | -l - Dock to the left. | 
| 19 | 6 | Per Amundsen | -oN - Locks the panel. (0 = unlocked, 1 = locked, Ignored by F2 to toggle panels visibility) | 
| 20 | -pN - Pins the panel. (0 = unpinned, 1 = pinned, Autohide) | ||
| 21 | 1 | Per Amundsen | -r - Dock to the right. | 
| 22 | -t - Dock to the top. | ||
| 23 | -u - Undocks/restores the @window to a regular window. | ||
| 24 | |||
| 25 | *Parameters* | ||
| 26 | |||
| 27 | [w h] - The preferred width and height of the panel. | ||
| 28 | <container> - Used with -c to insert the panel into a new container at the specified position. | ||
| 29 | 13 | Per Amundsen | <container panel> - Used with -n to insert the panel into a specific container at the specified panel position. | 
| 30 | <container panel tab> - Used with -i to specify where to insert the new panel. | ||
| 31 | 1 | Per Amundsen | <@window> - The window to dock. | 
| 32 | |||
| 33 | *Example* | ||
| 34 | |||
| 35 | <pre> | ||
| 36 | alias testdock { | ||
| 37 | ; Create a custom window. | ||
| 38 | window @test | ||
| 39 | |||
| 40 | 5 | Per Amundsen | ; Dock the custom window as a monitor panel to the left side, appending if there are any other panels. | 
| 41 | 1 | Per Amundsen | dock -al @test | 
| 42 | |||
| 43 | ; Restores the custom window as a normal window. | ||
| 44 | dock -u @test | ||
| 45 | |||
| 46 | ; Docks the custom window as a monitor panel to the top, ignoring any current panels. | ||
| 47 | dock -t @test | ||
| 48 | } | ||
| 49 | </pre> | ||
| 50 | |||
| 51 | - |