Skip to content
CuarzoSoftwarePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Services

Services is released under the LGPLv2.1 license. Current Services version.

This project is part of the Cuarzo Framework. Follow the instructions there to build and install it.

Clients of the system and session services a desktop shell needs, shared by every Cuarzo app (the bar's control panel, Settings, ...).

Each service is a class of its own: it talks to the service over D-Bus (or its command line tools) off the UI thread and tells when its state changed with signals. Like CZCore, each one is shared by the process: GetOrMake() returns the instance (made on first use), which lives while some shared pointer to it does.

auto audio { CZ::SVAudio::GetOrMake() };
audio->onChanged.subscribe(this, [audio]{ /* audio->state() */ });
Class Service
CZ::SVWiFi Wi-Fi (NetworkManager): turning it on/off, the networks in range, joining and forgetting them
CZ::SVAudio Audio (PipeWire or PulseAudio, through pactl): the default output and input (or some of their channels), their volume, the input level, playing sounds
CZ::SVStatus The status for a bar's indicators: network (NetworkManager), volume (from SVAudio) and battery (UPower), as symbolic icon names
CZ::SVNowPlaying What's playing (MPRIS media players): title, artist, artwork, play/pause, previous/next
CZ::SVNotificationsClient Desktop notifications from an app: sending them (to any daemon), their actions; controlling Gazette's notification center and Do Not Disturb
CZ::SVNotificationsServer The protocol side of a notifications daemon (Gazette uses it): reads what's sent into an SVNotification, emits its signals, serves the notification center's interface

Dependencies

cz-core and libsystemd (or libelogind/basu). At runtime: pactl, parec and pw-play (SVAudio) and curl (SVNowPlaying, for artwork given as URLs).

cz_services_dep = dependency('cz-services')

The log level is set with CZ_SERVICES_LOG_LEVEL.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages