Project

General

Profile

Dock » History » Revision 11

Revision 10 (Per Amundsen, 04/10/2022 01:08 PM) → Revision 11/19 (Per Amundsen, 04/10/2022 01:45 PM)

_Added in 4.3_ 

 */dock [-u] <@window>* 
 */dock [-abloNpNrt] [-abiloNpNrtu] [w h] <@window>* 
 */dock [-biloNpNrtu] [w h] <container [container panel tab> tab] <@window>* 
 */dock [-cbloNpNrtu] [w h] <container> <@window>* 
 */dock [-bloNpNnrtu] [w h] <container> <panel> <@window>* 

 Docks/undocks a window as a [[Monitor_Panels|Monitor Panel]]. 

 _See also [[$dockpanels]]._ 

 *Switches* 

 -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. 
 -b - Dock to the bottom. 
 -i - Inserts the window into the specified side/container/panel/tab 
 -l - Dock to the left. 
 -oN - Locks the panel. (0 = unlocked, 1 = locked, Ignored by F2 to toggle panels visibility) 
 -pN - Pins the panel. (0 = unpinned, 1 = pinned, Autohide) 
 -r - Dock to the right. 
 -t - Dock to the top. 
 -u - Undocks/restores the @window to a regular window. 

 *Parameters* 

 [w h] - The preferred width and height of the panel. 
 <container [container panel tab> tab] - Used with -i to specify where to insert the new panel. 
 <container> - Used with -c to insert the panel into a new container at the specified position.  
 <container> - Used with -n to insert the panel into a specific container at the specified panel position. 
 <@window> - The window to dock. 

 *Example* 

 <pre> 
 alias testdock { 
   ; Create a custom window. 
   window @test 

   ; Dock the custom window as a monitor panel to the left side, appending if there are any other panels. 
   dock -al @test 

   ; Restores the custom window as a normal window. 
   dock -u @test 

   ; Docks the custom window as a monitor panel to the top, ignoring any current panels. 
   dock -t @test 
 } 
 </pre> 

 -