Dock » History » Revision 8

« Previous | Revision 8/19 (diff) | Next »
Per Amundsen, 04/10/2022 01:07 PM

Added in 4.3

/dock [-abiloNpNrsNtu] [w h] [container panel tab] <@window>

Docks/undocks a window as a Monitor Panel.

See also $dockpanels.


-a - Adds the window to any other dock panel on the specified dock side as a new tab or creates a new 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.
-sN - Used with -a to split the appending panel into two. (0 = add at the beginning, 1 = add at the end)
-t - Dock to the top.
-u - Undocks/restores the @window to a regular window.


[w h] - The preferred width and height of the panel.
[container panel tab] - Used with -i to specify where to insert the panel.
<@window> - The window to dock.


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


Updated by Per Amundsen over 2 years ago · 8 revisions

Also available in: PDF HTML TXT