COSMIC: Difference between revisions
Thefossguy (talk | contribs) Add some tips and tricks that I came across, to better improve the experience on COSMIC. |
m →Optimization: Minor edit |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 22: | Line 22: | ||
} | } | ||
</syntaxhighlight>Alternatively, there is a [https://github.com/lilyinstarlight/nixos-cosmic flake] to setup COSMIC on NixOS. | </syntaxhighlight>Alternatively, there is a [https://github.com/lilyinstarlight/nixos-cosmic flake] to setup COSMIC on NixOS. | ||
=== Excluding COSMIC applications === | |||
To exclude certain applications that are installed by default with COSMIC, set the {{nixos:option|environment.cosmic.excludePackages}} module option (only available in 25.11): | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
environment.cosmic.excludePackages = with pkgs; [ | |||
cosmic-edit | |||
]; | |||
</nowiki>}} | |||
== Tips and tricks == | == Tips and tricks == | ||
Since COSMIC is a new desktop environment and only has a beta release, there are some nuances that not everyone is familiar with. This section will contain as many as the maintainers are aware of. | Since COSMIC is a new desktop environment and only has a beta release, there are some nuances that not everyone is familiar with. This section will contain as many as the maintainers are aware of. | ||
=== Optimization === | |||
You can slightly improve the performance of your Cosmic installation by enabling [https://github.com/pop-os/system76-scheduler system76's own scheduler] using this code block inside of your NixOS configuration file:<syntaxhighlight lang="nixos"> | |||
{ | |||
services.system76-scheduler.enable = true; | |||
} | |||
</syntaxhighlight> | |||
=== Clipboard === | === Clipboard === | ||
Due to the security concerns, Wayland defaults to the | Due to the security concerns, Wayland defaults to the behavior where only the focused client (window) can set the clipboard. Clipboard ownership is tied tightly to the focused client so that a background application cannot replace the clipboard contents. The intention from Wayland protocols is to improve security. But that can be an issue if you are either using a clipboard manager or perform rapid copy pasting in the terminal (like using macros in vi). | ||
This security measure can be '''bypassed'''. by enabling the '''unstable''' [https://wayland.app/protocols/wlr-data-control-unstable-v1#zwlr_data_control_manager_v1 zwlr_data_control_manager_v1] protocol. But please note that bypassing this security measure means that '''all windows now have access to the clipboard, globally'''. If that is a sacrifice you are willing to make, add the following to your NixOS configuration file:<syntaxhighlight lang="nix">{ | This security measure can be '''bypassed'''. by enabling the '''unstable''' [https://wayland.app/protocols/wlr-data-control-unstable-v1#zwlr_data_control_manager_v1 zwlr_data_control_manager_v1] protocol. But please note that bypassing this security measure means that '''all windows now have access to the clipboard, globally'''. If that is a sacrifice you are willing to make, add the following to your NixOS configuration file:<syntaxhighlight lang="nix">{ | ||
| Line 73: | Line 90: | ||
Most configuration changes are applied immediately without needing to restart the session. | Most configuration changes are applied immediately without needing to restart the session. | ||
[[Category:Desktop environment]] | [[Category:Desktop environment]] | ||