• Stars
    star
    2,766
  • Rank 16,463 (Top 0.4 %)
  • Language Just
  • Created over 2 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Next generation Cosmic desktop environment

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.

Disable SELinux

If you have SELinux enabled (e.g. on Fedora), the installed extension won't have the correct labels applied. To test COSMIC, you can temporarily disable it and restart gdm (note that this will close your running programs).

sudo setenforce 0
sudo systemctl restart gdm

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. You can enable tiling by setting tiling_enabled: true, at the bottom of the file.

sudo mkdir /etc/cosmic-comp
sudo cp cosmic-comp/config.ron /etc/cosmic-comp
sudo -e /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

More Repositories

1

shell

Pop!_OS Shell
TypeScript
4,276
star
2

pop

A project for managing all Pop!_OS sources
Rust
2,128
star
3

cosmic-text

Pure Rust multi-line text handling
Rust
1,571
star
4

cosmic

Computer Operating System Main Interface Components
JavaScript
1,066
star
5

gtk-theme

System76 Pop GTK+ Theme
SCSS
747
star
6

system76-scheduler

Auto-configure CFS and process priorities for improved desktop responsiveness
Rust
540
star
7

popsicle

Multiple USB File Flasher
Rust
520
star
8

system76-power

System76 Power Management
Rust
512
star
9

cosmic-comp

Compositor for the COSMIC desktop environment
Rust
466
star
10

iso

Pop!_OS ISO production
Makefile
439
star
11

libcosmic

WIP library for COSMIC applications
Rust
416
star
12

cosmic-term

WIP COSMIC terminal emulator
Rust
366
star
13

beta

Pop!_OS Beta
353
star
14

keyboard-configurator

Keyboard configuration UI
Rust
231
star
15

cosmic-edit

COSMIC Text Editor
Rust
225
star
16

distinst

Installer Backend
Rust
207
star
17

launcher

Modular IPC-based desktop launcher service
Rust
203
star
18

tensorman

Utility for easy management of Tensorflow containers
Rust
190
star
19

cosmic-applets

WIP applets for cosmic-panel
Rust
174
star
20

icon-theme

System76 Pop icon theme for Linux
Python
169
star
21

firmware-manager

Generic framework and GTK UI for firmware updates from system76-firmware and fwupd, written in Rust.
Rust
163
star
22

cosmic-settings

COSMIC Settings
Rust
151
star
23

wallpapers

Wallpapers for Pop!_OS
Makefile
149
star
24

cosmic-panel

WIP
Rust
110
star
25

nvidia-graphics-drivers

Pop!_OS NVIDIA Graphics Drivers
110
star
26

cosmic-launcher

WIP
Rust
102
star
27

system76-driver

System76 Driver for Pop!_OS
Python
101
star
28

cosmic-files

WIP COSMIC file manager
Rust
93
star
29

upgrade

Utility for upgrading Pop!_OS and its recovery partition to new releases.
Rust
90
star
30

cosmic-time

Animation Library for https://github.com/iced-rs/iced and https://github.com/pop-os/cosmic-epoch
Rust
86
star
31

gnome-shell-extension-system76-power

System76 Power Management Extension
TypeScript
74
star
32

cosmic-store

WIP COSMIC app store
Rust
72
star
33

system76-firmware

System76 Firmware Tool and Daemon
Rust
71
star
34

fonts

Fonts for the System76 Pop look, Fira and Roboto Slab
Makefile
68
star
35

cosmic-dock

Pop!_OS fork of https://github.com/micheleg/dash-to-dock/tree/ubuntu-dock
JavaScript
68
star
36

pop-arm64

Experimental scripts for building an Pop!_OS for ARM64 EFI platforms.
Shell
67
star
37

tiler

Generic tiling window manager library in Rust
Rust
65
star
38

cosmic-session

Session manager for the COSMIC desktop environment
Rust
65
star
39

core

WIP immutable base
Rust
56
star
40

cosmic-applibrary

WIP
Rust
55
star
41

shell-shortcuts

Application for displaying and demoing Pop Shell shortcuts
Rust
53
star
42

debrepbuild

A project for automatically generating and maintaining Debian repositories from a TOML spec.
Rust
53
star
43

cosmic-greeter

libcosmic greeter for greetd, which can be run inside cosmic-comp
Rust
50
star
44

theme

A metapackage including pop-fonts, pop-gtk-theme, and pop-icon-theme
42
star
45

desktop-widget

Pop Desktop Settings Widget
Fluent
41
star
46

touchegg

Pop!_OS fork of https://github.com/JoseExposito/touchegg
C++
36
star
47

async-fetcher

Rust crate for asynchronous file fetching, using optional fetching based on modified times and checksums
Rust
36
star
48

system76-dkms

System76 DKMS driver
C
36
star
49

sys-mount

High level FFI binding around the sys mount & umount2 calls, for Rust
Rust
36
star
50

url-scraper

Rust crate for scraping URLs from HTML pages
Rust
36
star
51

cosmic-wallpapers

Wallpapers for the COSMIC Desktop Environment
Makefile
36
star
52

gnome-shell-theme

The GNOME Shell theme for Pop!_OS
CSS
35
star
53

xdg-desktop-portal-cosmic

Rust
35
star
54

default-settings

Distribution Default Settings
Shell
35
star
55

cosmic-workspaces

Pop!_OS fork of https://github.com/RensAlthuis/vertical-overview
JavaScript
35
star
56

cosmic-app-template

Project template for creating applications for the COSMICâ„¢ desktop
Rust
34
star
57

linux-firmware

Pop!_OS fork of https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-firmware
C
29
star
58

cosmic-reader

WIP COSMIC PDF reader
Rust
28
star
59

gnome-control-center

Pop!_OS fork of https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/gnome-control-center
C
27
star
60

bus-writer

Single-reader, multi-writer & single-reader, multi-verifier; broadcasts reads to multiple writeable destinations in parallel
Rust
27
star
61

website

The Pop!_OS website
Vue
27
star
62

system-updater

Systemd services for checking for and applying system updates.
Rust
27
star
63

pidfd

Rust crate providing Linux (>= 5.3) PID file descriptor support
Rust
27
star
64

cosmic-randr

Library and utility for displaying and configuring Wayland outputs
Rust
27
star
65

buildchain

Software for creating and managing a distributed and reproducible chain of builds
Rust
27
star
66

desktop

Desktop metapackage
25
star
67

cosmic-protocols

Addtional wayland-protocols used by the COSMIC desktop environment
Rust
25
star
68

cosmic-osd

Rust
25
star
69

cosmic-theme-editor

WIP
Rust
24
star
70

system76-oled

Control brightness on OLED displays
Rust
24
star
71

cosmic-player

WIP COSMIC media player
Rust
22
star
72

libparted

Rust wrappers for libparted
Rust
22
star
73

gnome-shell-extension-do-not-disturb

Enable or disable do not disturb mode.
JavaScript
21
star
74

gnome-shell

Pop!_OS fork of https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/gnome-shell
C
21
star
75

cosmic-workspaces-epoch

Rust
21
star
76

cosmic-screenshot

Utility for capturing screenshots via XDG Desktop Portal
Rust
21
star
77

theme-switcher

Pop!_OS GTK widget library / app for switching themes
Rust
20
star
78

cosmic-settings-daemon

Rust
20
star
79

progress-streams

Rust crate to extend io::Read & io::Write types with progress callbacks
Rust
19
star
80

freedesktop-desktop-entry

Rust crate for navigating Freedesktop desktop entries
Rust
19
star
81

cosmic-notifications

Rust
19
star
82

sysfs-class

Rust library for viewing /sys/class in an object-oriented format
Rust
18
star
83

system76-wallpapers

System76 Wallpapers
17
star
84

plymouth-theme

Plymouth splash screen themes
Shell
17
star
85

systemd-boot-conf

Rust crate for managing the systemd-boot loader configuration.
Rust
17
star
86

cosmic-bg

Rust
17
star
87

repo-release

Produces Pop release package repositories
Shell
16
star
88

dbus-udisks2

Rust library for interacting with the UDisks2 DBus API
Rust
16
star
89

cosmic-theme

WIP
Rust
16
star
90

libcosmic-book

Guide for starting development with libcosmic: https://pop-os.github.io/libcosmic-book/
16
star
91

system76-acpi-dkms

System76 ACPI Driver (DKMS)
C
15
star
92

gtk-extras

Rust crate containing an assortment of extra, unofficial GTK patterns, widgets, and traits.
Rust
13
star
93

as-result

Rust crate which provides the `AsResult<T, E>` and `IntoResult<T, E>` traits.
Rust
13
star
94

debarchive

Rust crate which provides direct access to files within a Debian archive
Rust
13
star
95

mutter-rs

Rust wrappers for Mutter and related projects
Rust
13
star
96

proc-mounts

Rust crate for fetching active mounts and swaps on a Linux system
Rust
13
star
97

os-release

Rust crate for parsing the /etc/os-release file, common with Linux distributions
Rust
13
star
98

iced-sctk

WIP
Rust
12
star
99

grub-theme

Grub bootloader theme
12
star
100

cog-stable-diffusion

Packaging for convenience of installation and setup of stable diffusion on Pop
Python
12
star