Fork de travail pop-os/libcosmic pour contribs COSMIC
APIs like inotify can provide notification for some events that don't change the contents of a file. It makes sense to ignore those here, even if the expected way to write is through the config API. This reduces the number of events on the directory received by a single `:w` in vim from 12 to 8. And reduces a `touch` from 2 events to 1. Atomic writes through the config API only result in 1 event per-setting, before and after this change. |
||
|---|---|---|
| .github/workflows | ||
| .vscode | ||
| cosmic-config | ||
| cosmic-config-derive | ||
| cosmic-theme | ||
| examples | ||
| iced@6712047379 | ||
| res | ||
| src | ||
| .gitignore | ||
| .gitmodules | ||
| Cargo.toml | ||
| config.toml | ||
| LICENSE | ||
| README.md | ||
LIBCOSMIC
Building blocks for COSMIC applications.
Building
Libcosmic is written in pure Rust, so cargo is all you need.
cargo build
Usage
There's examples in the examples directory.
Widget library
cargo run --release --example cosmic
On Pop!_OS
sudo apt install cargo libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config cmake
git clone https://github.com/pop-os/libcosmic
cd libcosmic
git submodule update --init
cargo run --release -p cosmic
If already cloned
cd libcosmic
git pull origin master
cargo run --release -p cosmic
Text rendering
cargo run --release --example text
Documentation
The documentation can be found here.
Licence
Libcosmic is licenced under the MPL-2.0