mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-29 21:41:00 +08:00
164 lines
8.2 KiB
Markdown
164 lines
8.2 KiB
Markdown
[#]: subject: "Ubuntu Workspaces: Enabling, Creating, and Switching"
|
||
[#]: via: "https://itsfoss.com/ubuntu-workspaces/"
|
||
[#]: author: "Sreenath https://itsfoss.com/author/sreenath/"
|
||
[#]: collector: "lkxed"
|
||
[#]: translator: " "
|
||
[#]: reviewer: " "
|
||
[#]: publisher: " "
|
||
[#]: url: " "
|
||
|
||
Ubuntu Workspaces: Enabling, Creating, and Switching
|
||
======
|
||
|
||
Workspaces are virtual desktops that allow you to juggle and organize a collection of application windows.
|
||
|
||
Instead of cluttering all the windows in one screen, you can have multiple windows in different workspaces. This way, your desktop workspace stays organized, and you can quickly access the desired window/app.
|
||
|
||
Modern desktop environments provide several ways to organize your virtual desktops.
|
||
|
||
The latest releases of Ubuntu use GNOME 40 and above. With them, you get a horizontal alignment of workspaces and impressive touchpad gesture support for the Wayland [display server][1].
|
||
|
||
### Using the Default Ubuntu Workspaces
|
||
|
||
Whether you use Ubuntu or any other distribution with GNOME, you can access the workspace overview by pressing the **Super** key. You get an overview of the two workspaces (and anything in it).
|
||
|
||
> 💡 You can also access the workspaces using the top **Activities** button.
|
||
|
||
![Press the Super key to get the Workspace overview][2]
|
||
|
||
By default, the **workspaces are dynamically allocated** and start at 2.
|
||
|
||
In other words, **a new workspace will be appended when you move a window to the last workspace.**
|
||
|
||
![][3]
|
||
|
||
And if you remove all the windows from any of the extra workspaces, those workspaces will be automatically closed.
|
||
|
||
In addition, if you press the super key twice or click the bottom left **Applications** button, you will get an **overview of workspaces along with the application grid** as shown below:
|
||
|
||
![Application Grid with Workspace Overview][4]
|
||
|
||
> 💡 You can drag and drop any icon from the dock or grid to a particular workspace to open it there.
|
||
|
||
Now that you know how to access a workspace, you might want to learn the shortcuts to navigate through it efficiently before you customize it to your requirements.
|
||
|
||
### Workspace Navigation Shortcuts
|
||
|
||
| Description | Use |
|
||
| :- | :- |
|
||
| Move to workspace on the left | Super + PageUp |
|
||
| Move to workspace on the right | Super + PageDown |
|
||
| Move window one workspace to the left | Shift + Super + PageUp |
|
||
| Move window one workspace to the right | Shift + Super + PageDown |
|
||
| Switch to workspace 1 | Super + Home |
|
||
| Switch to the last workspace | Super + End |
|
||
| Move a window to workspace 1 | Shift + Super + Home |
|
||
| Move a window to last workspace | Shift + Super + End |
|
||
|
||
You can download a cheatsheet for these shortcuts using the PDF file linked below:
|
||
|
||
[Ubuntu Workspaces ShortcutsUbuntu-Workspaces Shortcuts.pdf117 KBdownload-circle][5]
|
||
|
||
> 💡 You can use the three-finger left/right swipe on laptop touchpads to switch between the workspaces.
|
||
|
||
### Configuring the Workspaces
|
||
|
||
While the default settings are more than enough for most users, sometimes, you may want to configure them to suit your needs.
|
||
|
||
There are several ways you can tweak the default workspace behavior. I am using Ubuntu GNOME here, and the same steps should work on almost all GNOME-based Linux distributions.
|
||
|
||
#### Enabling the Hot Corner Feature
|
||
|
||
By default, the **hot corner** feature is disabled in Ubuntu. To enable it, open settings and go to the **Multitasking** tab. And, toggle the Hot Corner option, as shown in the screenshot below.
|
||
|
||
![Enable Hot Corner feature from Multitasking tab in GNOME system settings to get workspace overview while hovering over top left corner][6]
|
||
|
||
> 💡 You can now hover on the top left corner to get the overview of workspaces. This is very useful if you are using the mouse frequently.
|
||
|
||
#### Fixed Number of Workspaces
|
||
|
||
As mentioned, Ubuntu uses dynamic workspaces by default.
|
||
|
||
However, you can change it to a fixed number of workspaces if you need.
|
||
|
||
Note that this will remove the automatic appending of workspaces. So, whenever you think you need another workspace, **you have to come back to this setting and change the number of workspaces**.
|
||
|
||
To proceed with this, head to the _Multitasking_ tab, enable **fixed workspaces,** and change the number to your liking.
|
||
|
||
![Fixed workspaces is enabled from Multitasking Tab under GNOME System Settings][7]
|
||
|
||
#### Workspace Settings for Multi-Monitor Setup
|
||
|
||
This is one of the most essential features for those with several monitors who want to increase productivity.
|
||
|
||
The default setting for this is **workspace on Primary display only**.
|
||
|
||
This means your virtual desktops are confined to your primary monitor. The other monitors can stick to any dedicated use-case you want (or assume it as a single workspace).
|
||
|
||
Say, for example, use your virtual desktops on the primary monitor for various editing tasks while using the external monitor for presentation purposes.
|
||
|
||
![Multi-monitor feature][8]
|
||
|
||
Now, if you have several monitors, you can tweak it to **Workspaces on all displays**, making your workspace available to all the monitors, just like a single big monitor.
|
||
|
||
It can be helpful for enhanced productivity as per your requirements. Under this setting, you can seamlessly move your windows to any monitor.
|
||
|
||
#### Tweak Application Switching between Workspaces
|
||
|
||
By default, the application switching is set to "**application windows from all workspaces**" and "**application****windows from all monitors**".
|
||
|
||
This means you can switch between app windows opened on different workspaces or monitors from any workspace. You can use either a keyboard shortcut or Ubuntu Dock to do it.
|
||
|
||
![Application Switching across workspaces][9]
|
||
|
||
If you set it to "**Include application from current workspace only,"** then you can only switch between applications on your current workspace.
|
||
|
||
To go to a window on a different workspace, you need to first go to that workspace.
|
||
|
||
If you like to juggle between things quickly, the default settings should suffice. And, if you want more control, you may need to tweak the settings as mentioned above.
|
||
|
||
### More to Tweak
|
||
|
||
I have discussed the basic tweaks to the workspace available out of the box.
|
||
|
||
But there are several other things that you can use for more improvements. One such aid is the _[Workspace Switcher Manager][10]_GNOME extension.
|
||
|
||
With this extension, you can do several tweaks to the default workspace switcher, accessible through the shortcut `Super + PageUp/Down`, like giving names to workspaces, displaying the active window title on each workspace, etc.
|
||
|
||
![Workspace Switcher Manager in action][11]
|
||
|
||
Once you [install this GNOME extension][12], you can tweak it according to your liking from the extension settings.
|
||
|
||
![Workspace Switcher Manager Extension settings page][13]
|
||
|
||
> 💡 You can access the settings from the gear icon adjacent to the extension on the Extensions app.
|
||
|
||
_💬 Do you use workspaces often? Share your thoughts on your experience in the comments._
|
||
|
||
--------------------------------------------------------------------------------
|
||
|
||
via: https://itsfoss.com/ubuntu-workspaces/
|
||
|
||
作者:[Sreenath][a]
|
||
选题:[lkxed][b]
|
||
译者:[译者ID](https://github.com/译者ID)
|
||
校对:[校对者ID](https://github.com/校对者ID)
|
||
|
||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||
|
||
[a]: https://itsfoss.com/author/sreenath/
|
||
[b]: https://github.com/lkxed/
|
||
[1]: https://itsfoss.com/display-server/
|
||
[2]: https://itsfoss.com/content/images/2023/02/press_super_key_to_get_workspace_overview-1.png
|
||
[3]: https://itsfoss.com/content/images/2023/03/ubuntu-workspaces-3.png
|
||
[4]: https://itsfoss.com/content/images/2023/02/application_grid_and_workspace_overview.png
|
||
[5]: https://itsfoss.com/content/files/2023/03/Ubuntu-Workspaces-Shortcuts.pdf
|
||
[6]: https://itsfoss.com/content/images/2023/02/enable_hot_corner.png
|
||
[7]: https://itsfoss.com/content/images/2023/02/fixed_workspaces.png
|
||
[8]: https://itsfoss.com/content/images/2023/02/multi-monitor.png
|
||
[9]: https://itsfoss.com/content/images/2023/02/application_switiching.png
|
||
[10]: https://extensions.gnome.org/extension/4788/workspace-switcher-manager/?ref=its-foss
|
||
[11]: https://itsfoss.com/content/images/2023/02/workspace-switcher-manager.png
|
||
[12]: https://itsfoss.com/gnome-shell-extensions/
|
||
[13]: https://itsfoss.com/content/images/2023/02/workspace-switcher-manager-extension-options.png
|