Arranging the bar

Arrange workspaces lets you reorder and group the bar's rows by dragging them.

Arrange workspaces turns the bar into a mode where you reorder and group its rows by dragging them.

How to use it

Choose Arrange workspaces on any row's menu, a group header's menu or the bar's own menu. It does not work while the bar is minimized, so restore the bar first. End the mode with Esc, with Done on the strip at the bottom of the bar ("Drag rows to arrange · Esc"), or with Done arranging on the menu.

While the mode is on, a grip sits before every row and group header name. Clicks on rows do not switch workspaces, and the rows' icons are dimmed and do not drag windows. Everything that is not a row works as usual: Start, search, the pinned apps, the footer, the back and minimize buttons, the right-click menus and the window tabs on the screens. You can still resize the bar from its edge and move it by anything that is not a row. Ctrl+drag on a row does not move it.

The row under the pointer decides where a dragged row goes:

A row that leaves a group of two dissolves it. Dragging a group header moves the whole group among the top-level rows. Pinned workspaces stay at the top and move only among themselves, and they cannot be grouped.

Esc during a drag cancels the drag, and a second Esc ends the mode.

Settings

Manage has no setting for arranging. The mode lasts until you end it.

From a script

deskbar.cmd arrange on and arrange off start and end the mode. Neither works while the bar is minimized. The pipe does not bring the bar to the front, so Esc works only once the bar has focus.

Rows and groups can also be moved one at a time:

$ts = "$env:APPDATA\Deskbar\deskbar.cmd"
& $ts reorder Review end                  # to the bottom of its group
& $ts group-leave Review                  # out of the group

reorder <ws> and group-reorder <group> take up, down, top, end or a row number.