WorkspacePreview - bakkeby/dusk GitHub Wiki

The WorkspacePreview functionality, if enabled, will allow for preview images be displayed when hovering the mouse cursor over workspace icons in the bar for workspaces that are occupied by clients.

WorkspacePreview.gif

The placement of the preview is relative to the mouse cursor.

The preview window will have the class and instance hints of "preview" and "preview" for now.

Known Issues

  • workspace preview images are captured as part of the next preview image when changing workspaces
  • if viewing multiple workspaces then the entire view is stored as a preview

Also refer to the Workspace bar module.


Performance

The way it works is that whenever you change workspace it takes a screenshot of the workspace you are currently on.

Naturally this will add a delay when changing view from one workspace to another.

A test performing 1000 workspace switches suggested an increase of at least 100ms to change workspace having the WorkspacePreview functionality enabled.

Without preview With preview
Total time 10.519s 1m 59.02s
Time to switch workspace 10.5ms 119ms
Workspace switches per second 95 8.40

The actual performance will of course depend on many factors. While it is still very quick and barely noticeable to the human eye one may feel that it is overall less snappy when it comes to changing workspaces.

As for presenting the previews when hovering the mouse cursor over the workspace icons on the bar this should be a perfectly smooth experience and one should not expect any particular performance impact in this regard.


Back to Functionality.

⚠️ **GitHub.com Fallback** ⚠️