lnicola / cosmic-epoch

Next generation Cosmic desktop environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COSMIC Desktop

Currently an incomplete pre-alpha.

Components of COSMIC Desktop

Setup

The COSMIC desktop environment requires a few dependencies: (This list does not try to be exhaustive, but rather tries to provide a decent starting point. For detailed instructions check out the individual projects):

  • just
  • rustc
  • libwayland
  • mesa (or third-party libEGL/libGL implementations, though interfacing with mesa's libglvnd is generally recommended).
  • libseat
  • libxkbcommon
  • libinput
  • libgtk
  • udev
  • dbus

optionally (though the build-system might currently require these libraries):

  • libsystem
  • libpulse
  • pop-launcher
  • libexpat1
  • libfontconfig
  • libfreetype
  • lld
  • cargo
  • libgbm-dev
  • libclang-dev
  • libpipewire-0.3-dev

Note: libfontconfig, libfreetype, and lld are packages specific to Linux distributions. You may need to find the equivalent version for your distribution if you are not using Pop!_OS.

The required ones can be installed with:

sudo apt install just rustc libglvnd-dev libwayland-dev libseat-dev libxkbcommon-dev libinput-dev libgtk-4-1 udev dbus libdbus-1-dev -y

and the optional ones with:

sudo apt install libsystemd-dev libpulse-dev pop-launcher libexpat1-dev libfontconfig-dev libfreetype-dev lld cargo libgbm-dev libclang-dev libpipewire-0.3-dev -y

They can be installed all at once with:

sudo apt install just rustc libglvnd-dev libwayland-dev libseat-dev libxkbcommon-dev libinput-dev libgtk-4-1 udev dbus libdbus-1-dev libsystemd-dev libpulse-dev pop-launcher libexpat1-dev libfontconfig-dev libfreetype-dev lld cargo libgbm-dev libclang-dev libpipewire-0.3-dev -y

Testing

The easiest way to test COSMIC DE currently is by building a systemd system extension (see man systemd-sysext).

git clone --recurse-submodules https://github.com/pop-os/cosmic-epoch
cd cosmic-epoch
just sysext

This will create a system-extension called cosmic-sysext, that you can move (without renaming!) into e.g. /var/lib/extensions. After starting systemd-sysext.service (sudo systemctl enable --now systemd-sysext) and refreshing (sudo systemd-sysext refresh) or rebooting, COSMIC will be an available option in your favorite display manager.

Note: An extension created this way will be linked against specific libraries on your system and will not work on other distributions. It also requires the previously mentioned libraries/dependencies at runtime to be installed in your system (the system extension does not carry these libraries).

It is thus no proper method for long term deployment.

Packaging

COSMIC DE is packaged for Pop!_OS. For reference look at the debian folders in the projects repositories. These and the justfile inside this repository may be used as references on how to package COSMIC DE, though no backwards-compatibility guarantees are provided at this stage.

Versioning

COSMIC DE is very much still work-in-progress and thus does not follow a versioning scheme so far. We do our best to keep the referenced submodule commits in this repository building and working together, as a consequence they might not contain the latest updates and features from these repositories (yet).

Notes on versioning and packaging all these components together properly will be added at a later stage once COSMIC DE gets its first release.

Installing on Pop!_OS

COSMIC DE is in heavy development and not ready for issue reports. Currently, GUIs are incomplete and don't match designs, desktop settings aren't available and bugs are obvious and known. You're seeing the sausage be made. Most configuration is currently in text files and would be familiar to i3/Sway users. A call for testing will be announced when the project is ready for reports. With that out of the way, feel free to jump in and have fun.

Enable Wayland

sudo nano /etc/gdm3/custom.conf

Change to true WaylandEnable=true

Reboot for this change to take effect.

Install COSMIC

sudo apt install cosmic-*

After logging out, click on your user and there will be a sprocket at the bottom right. Change the setting to COSMIC. Proceed to log in.

Configuring COSMIC DE

This is basic configuration to get you started. See individual projects repos above for details.

Access cosmic-launcher with Super+/. This will eventually be moved to Super alone.

COSMIC COMP

COSMIC Comp is the compositor for COSMIC DE. Its config file is located at /etc/cosmic-comp/config.ron. Enable tiling by setting tiling_enabled: true, at the bottom of the file.

sudo nano /etc/cosmic-comp/config.ron

Screenshots

sudo apt install ksnip qtwayland5

Add (modifiers: [], key: "Print"): Spawn("ksnip -t"), to /etc/cosmic-comp/config.ron. The screenshot will open in a separate window for cropping and saving.

Panel Configuration
mkdir ~/.config/cosmic-panel
cd ~/.config/cosmic-panel
wget https://github.com/pop-os/cosmic-panel/raw/master_jammy/cosmic-panel-config/config.ron
nano config.ron

To apply configuration changes, open System Monitor, find the cosmic-panel process and click End Process. The panel should restart automatically. If not, you may have an invalid option or syntax error. Correct the error and launch the panel with cosmic-panel </dev/null &>/dev/null &.

Desktop Backgrounds

Desktop backgrounds currently cycle through system backgrounds. They'll be configurable once cosmic-settings integration is complete.

WebGL on NVIDIA

WebGL on NVIDIA is currently broken but will work in Google Chrome using software rendering.

flatpak install com.google.Chrome

Change flags to enable wayland and dark mode.

chrome://flags/#ozone-platform-hint (Wayland)
chrome://flags/#enable-force-dark (Enabled)
chrome://flags/#enable-webrtc-pipewire-capturer (Enabled)

Contact

About

Next generation Cosmic desktop environment


Languages

Language:Just 100.0%