Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinned workspaces #108

Open
maria-komarova opened this issue Dec 23, 2024 · 4 comments
Open

Pinned workspaces #108

maria-komarova opened this issue Dec 23, 2024 · 4 comments
Milestone

Comments

@maria-komarova
Copy link

maria-komarova commented Dec 23, 2024

Pinned workspaces is a new feature meant as an alternative to the fixed (or static) workspaces. The functionality in essence is very similar. The main difference is that workspaces are pinned in the window and workspaces overview instead of one using "Add workspace" button after switching to fixed workspaces in Settings. Having pinned workspace should allow us to avoid having a separate mode in the implementation.

  • Pin button is in the right bottom corner of each workspace thumbnail (preview) in the workspace picker and shows on hover (it should be visible in default state on touch devices). Once that button is clicked, it is toggled on.
  • The workspaces that are pinned are not removed even when empty unlike other dynamic workspaces.
  • There is always an unpinned empty dynamic workspace at the end.

Mockup - Workspace 1 is pinned, Workspace 3 is hovered.
workspace1-overview-hoverW3

If the window (Text Editor) on workspace 2 is closed on the mockup below, then one navigates away, workspace 2 is deleted because it is unpinned and therefore works as a dynamic workspace.
workspace2-overview-pinnedW1W3

Figma prototype:

  • Open overview with the mouse
  • Pin workspace 1 and workspace 3
  • Close Text Editor on workspace 2 from inside the overview
  • Navigate to workspace 1 or 3 from workspace 2
  • Close Files browser on workspace 1
  • Navigate away from workspace 1.

Figma mockups.

@theshatterstone
Copy link

theshatterstone commented Jan 2, 2025

Hello there! I was curious: seeing as static workspaces was pushed back to Epoch 2 (from my understanding),

Is there a way to automate the creation and placement of a set number of pinned workspaces, essentially providing fixed workspaces behaviour early?

(It's the main feature I'm missing from COSMIC and one of two (the other being Night Light) not planned for the first release). Thanks.

Edit: I should clarify that I'm aware this feature is not yet implemented so my question was more about whether such an aspect of it is planned.

@maria-komarova
Copy link
Author

I'm not sure what you mean by the automated placement of a set number of pinned workspaces.
I don't know if this might partially answer your question but while workspaces are created dynamically by default, pinning the workspaces from the overview should essentially turn them into static ones since we plan for pinned workspaces to persist through reboots.

@joedavid0
Copy link

joedavid0 commented Jan 2, 2025

Personally, the issue I have is not necessarily that COSMIC "removes" the workspace but rather that it

  1. prohibits one to manually create workspaces at any number and
  2. upon a workspace becoming empty, moves all higher workspaces one number lower.

I always think about workspaces being tied to a hotkey I have to press but (2) causes workspaces to always shift around (see also pop-os/cosmic-comp#586). The problem with (1) is that I often have the same application on the same workspace (and thus hotkey) but when I e.g. want to put an app on number 5, I have to create 2, 3 and 4 first.

@theshatterstone
Copy link

I'm not sure what you mean by the automated placement of a set number of pinned workspaces.

@maria-komarova I'm sorry, what I meant was if there will be an exposed way to create scripts that would create a set number of fixed workspaces automatically. An exposed command line tool or config file that we could modify via scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants