lys-desktop

module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT

README

lys-desktop

The packages the lys desktop's shell, login and settings share: the config and its schema, theming, translations, shared widgets and the clients of the desktop's system services. It builds on lys-ui and lys-lib.

go get github.com/stubbedev/lys-desktop@latest

Directories

Path Synopsis
cmd
install-icons command
Command install-icons writes the bundled symbolic icons into a directory: the ones named, or all of them.
Command install-icons writes the bundled symbolic icons into a directory: the ones named, or all of them.
Package config loads lys-shell's user configuration: the same files the Rust shell reads, with the same discovery order, imports, key names, defaults, layering (defaults < config file < runtime overrides), and failure behavior.
Package config loads lys-shell's user configuration: the same files the Rust shell reads, with the same discovery order, imports, key names, defaults, layering (defaults < config file < runtime overrides), and failure behavior.
internal/schemadoc
Package schemadoc extracts the config schema descriptions from the config package's doc comments, the way schemars reads Rust doc comments: a type's description is its doc after the first paragraph (the Go sentence naming the type, which revive requires), a field's is its whole doc, and an enum variant's is its constant's doc.
Package schemadoc extracts the config schema descriptions from the config package's doc comments, the way schemars reads Rust doc comments: a type's description is its doc after the first paragraph (the Go sentence naming the type, which revive requires), a field's is its whole doc, and an enum variant's is its constant's doc.
internal/schemadoc/cmd command
Command schemadoc regenerates config/schemadoc_gen.go; run it through `go generate ./config`.
Command schemadoc regenerates config/schemadoc_gen.go; run it through `go generate ./config`.
Package desktopentry is gio's desktop-entry layer: the key-file parser, the XDG application list with gio's load and visibility rules, Exec expansion, and launching.
Package desktopentry is gio's desktop-entry layer: the key-file parser, the XDG application list with gio's load and visibility rules, Exec expansion, and launching.
Package fakeclock is a clock tests advance by hand: Now stands still and AfterFunc callbacks run only inside Advance, in due order, so a countdown's expiry is an assertion rather than a race against the scheduler.
Package fakeclock is a clock tests advance by hand: Now stands still and AfterFunc callbacks run only inside Advance, in due order, so a countdown's expiry is an assertion rather than a race against the scheduler.
Package feed is the in-process change fan-out the services share: every subscriber gets its own buffered channel, publishing never blocks on a slow or departed reader (a full buffer drops the value; tick feeds coalesce), and unsubscribing closes the channel so the reader's range loop ends.
Package feed is the in-process change fan-out the services share: every subscriber gets its own buffered channel, publishing never blocks on a slow or departed reader (a full buffer drops the value; tick feeds coalesce), and unsubscribing closes the channel so the reader's range loop ends.
Package fileuri is the percent-encoding and file:// URI handling lys-shell's portal, clipboard and VPN code share.
Package fileuri is the percent-encoding and file:// URI handling lys-shell's portal, clipboard and VPN code share.
Package fswatch turns inotify events into coalesced change ticks, the Go counterpart of the `notify` crate watchers the Rust services use (the mail service's recursive maildir watch, the brightness sysfs watch).
Package fswatch turns inotify events into coalesced change ticks, the Go counterpart of the `notify` crate watchers the Rust services use (the mail service's recursive maildir watch, the brightness sysfs watch).
Package glob is the blocklist matcher: case-insensitive `*` wildcards, shared by the notification blocklist and the systray blacklist (wayle-core's glob.rs).
Package glob is the blocklist matcher: case-insensitive `*` wildcards, shared by the notification blocklist and the systray blacklist (wayle-core's glob.rs).
Package i18n is lys-shell's Fluent localization: a port of the runtime the Rust crates get from i18n-embed 0.16 (FluentLanguageLoader), fluent-bundle 0.16, fluent-syntax 0.12, and fluent-langneg 0.13.
Package i18n is lys-shell's Fluent localization: a port of the runtime the Rust crates get from i18n-embed 0.16 (FluentLanguageLoader), fluent-bundle 0.16, fluent-syntax 0.12, and fluent-langneg 0.13.
locales/greeter
Package locales embeds the greeter's Fluent file.
Package locales embeds the greeter's Fluent file.
locales/settings
Package locales embeds the config schema's Fluent partials, which lys-settings reads through i18n.ConfigAssets.
Package locales embeds the config schema's Fluent partials, which lys-settings reads through i18n.ConfigAssets.
locales/shell
Package locales embeds the shell's Fluent partials: the bar, its dropdowns, the lock screen, the OSD and the notification surfaces.
Package locales embeds the shell's Fluent partials: the bar, its dropdowns, the lock screen, the OSD and the notification surfaces.
Package icons ports crates/wayle-icons: the icon sources (Tabler, Simple Icons, Material, Lucide), fetching from their CDNs, the SVG to GTK-symbolic transform, local imports, the on-disk icon directory, format migration, and the config-driven sync behind `lys-shell icons`.
Package icons ports crates/wayle-icons: the icon sources (Tabler, Simple Icons, Material, Lucide), fetching from their CDNs, the SVG to GTK-symbolic transform, local imports, the on-disk icon directory, format migration, and the config-driven sync behind `lys-shell icons`.
icontest
Package icontest serves icon CDNs without the network, for tests of what installs icons.
Package icontest serves icon CDNs without the network, for tests of what installs icons.
skpath
Package skpath is a port of the parts of tiny-skia-path 0.11 (Skia's SkPath, SkStroke and SkDashPath) the icon transform needs: path building, affine transforms, stroking into fill outlines, and dashing.
Package skpath is a port of the parts of tiny-skia-path 0.11 (Skia's SkPath, SkStroke and SkDashPath) the icon transform needs: path building, affine transforms, stroking into fill outlines, and dashing.
usvg
Package usvg is a port of the subset of usvg 0.46 (with svgtypes, simplecss and kurbo's arc code) that turns an SVG document into the tree of groups and paths the icon transform walks: element and attribute resolution (presentation attributes, CSS, style, inherit), use/switch/nested svg expansion, markers, shapes to paths, and fill/stroke resolution.
Package usvg is a port of the subset of usvg 0.46 (with svgtypes, simplecss and kurbo's arc code) that turns an SVG document into the tree of groups and paths the icon transform walks: element and attribute resolution (presentation attributes, CSS, style, inherit), use/switch/nested svg expansion, markers, shapes to paths, and fill/stroke resolution.
Package identity is the lys desktop's name on disk: the directory its per-user state, cache and data are kept under in each XDG base directory.
Package identity is the lys desktop's name on disk: the directory its per-user state, cache and data are kept under in each XDG base directory.
Package imagedecode opens raster images in the formats the Rust shell's `image` crate decodes by default for wallpapers: PNG, JPEG, GIF, BMP, TIFF, WebP (stdlib and golang.org/x/image), plus farbfeld, PNM (P1-P6), and TGA, which Go has no decoder for and this package registers itself.
Package imagedecode opens raster images in the formats the Rust shell's `image` crate decodes by default for wallpapers: PNG, JPEG, GIF, BMP, TIFF, WebP (stdlib and golang.org/x/image), plus farbfeld, PNM (P1-P6), and TGA, which Go has no decoder for and this package registers itself.
internal
bussignal
Package bussignal is the upkeep of a signal channel a reader holds itself, because its signals come from peers or paths no dbusx watch can name ahead of time.
Package bussignal is the upkeep of a signal channel a reader holds itself, because its signals come from peers or paths no dbusx watch can name ahead of time.
fdtest
Package fdtest checks that a descriptor a test sends over D-Bus is closed by everyone it reaches: a pipe whose read end hangs up only once no copy of its write end is open anywhere in the process.
Package fdtest checks that a descriptor a test sends over D-Bus is closed by everyone it reaches: a pipe whose read end hangs up only once no copy of its write end is open anywhere in the process.
Package ipcsock bounds a request on a local unix socket, so a hung peer costs its client an error instead of the client's thread.
Package ipcsock bounds a request on a local unix socket, so a hung peer costs its client an error instead of the client's thread.
ipcsocktest
Package ipcsocktest fakes a hung compositor on a unix socket.
Package ipcsocktest fakes a hung compositor on a unix socket.
Package logging is lys-shell's log setup (lys-shell/src/core/tracing.rs and lys-shell's tracing_init): a daily file in the state directory, "<prefix>.<YYYY-MM-DD>.log", keeping the newest seven, behind the standard log package.
Package logging is lys-shell's log setup (lys-shell/src/core/tracing.rs and lys-shell's tracing_init): a daily file in the state directory, "<prefix>.<YYYY-MM-DD>.log", keeping the newest seven, behind the standard log package.
Package mime is the system's shared-mime-info database in pure Go: a file's mimetype from its name (g_content_type_guess with no data) or from its name and contents (the spec's glob and magic checking order), the generic icon for a type (g_content_type_get_generic_icon_name), and its aliases, parents and description.
Package mime is the system's shared-mime-info database in pure Go: a file's mimetype from its name (g_content_type_guess with no data) or from its name and contents (the spec's glob and magic checking order), the generic icon for a type (g_content_type_get_generic_icon_name), and its aliases, parents and description.
Package offheap holds large buffers (rasters, clipboard payloads) in memory-go memory instead of on the Go heap, so their pages go back to the system the moment their owner frees them rather than lingering as garbage that raises the heap goal.
Package offheap holds large buffers (rasters, clipboard payloads) in memory-go memory instead of on the Go heap, so their pages go back to the system the moment their owner frees them rather than lingering as garbage that raises the heap goal.
Package opener opens a file or URI with the user's default app, as xdg-open does without its desktop detection: the target's mimetype (x-scheme-handler/<scheme> for a URI, the shared-mime-info glob and magic answer for a file), the default app the mimeapps.list files name for it or its nearest parent type, launched through its desktop entry.
Package opener opens a file or URI with the user's default app, as xdg-open does without its desktop detection: the target's mimetype (x-scheme-handler/<scheme> for a URI, the shared-mime-info glob and magic answer for a file), the default app the mimeapps.list files name for it or its nearest parent type, launched through its desktop entry.
openertest
Package openertest gives a test a scratch desktop to open things on: the XDG directories under a temp root, a private session bus, and fake apps on PATH that record what they were launched with.
Package openertest gives a test a scratch desktop to open things on: the XDG directories under a temp root, a private session bus, and fake apps on PATH that record what they were launched with.
Package outputsize reads the size a surface covering an output has in device pixels.
Package outputsize reads the size a surface covering an output has in device pixels.
portal
permissions
Package permissions is what apps were granted through the portal: the frontend's permission store and lys's own shortcut store, read as one per-app model and revoked from it.
Package permissions is what apps were granted through the portal: the frontend's permission store and lys's own shortcut store, read as one per-app model and revoked from it.
permissions/permstoretest
Package permstoretest runs the real xdg-permission-store on a private test bus.
Package permstoretest runs the real xdg-permission-store on a private test bus.
Package resources embeds the repository's bundled assets: the symbolic icons `lys-shell icons setup` installs.
Package resources embeds the repository's bundled assets: the symbolic icons `lys-shell icons setup` installs.
Package rusterr renders Go errors the way the Rust code's Display impls print the equivalent errors, for messages that must read the same from both binaries.
Package rusterr renders Go errors the way the Rust code's Display impls print the equivalent errors, for messages that must read the same from both binaries.
service
clipboard
Package clipboard is the session's clipboard history (crates/wayle-clipboard): what gets remembered, how it is labelled, what is refused, and the service that keeps it current from the Wayland selection over lys-ui's data-control device.
Package clipboard is the session's clipboard history (crates/wayle-clipboard): what gets remembered, how it is labelled, what is refused, and the service that keeps it current from the Wayland selection over lys-ui's data-control device.
lyswm
Package lyswm is the lys-wm IPC client: one JSON request line per connection on $LYS_WM_SOCKET, answered by one response line, and the watch stream of event lines (lys-wm's docs/ipc.md).
Package lyswm is the lys-wm IPC client: one JSON request line per connection on $LYS_WM_SOCKET, answered by one response line, and the watch stream of event lines (lys-wm's docs/ipc.md).
lyswm/lyswmtest
Package lyswmtest is a fake lys-wm on a private IPC socket, advertised through wmipc.SocketEnv for the test's duration.
Package lyswmtest is a fake lys-wm on a private IPC socket, advertised through wmipc.SocketEnv for the test's duration.
mpris
Package mpris is the media player service over MPRIS2 (D-Bus), the Go counterpart of crates/wayle-media: it discovers players by bus name, keeps each one's snapshot current from PropertiesChanged, picks the active player the way selection.rs does, and drives the transport (play/pause, next, previous, seek, loop, shuffle).
Package mpris is the media player service over MPRIS2 (D-Bus), the Go counterpart of crates/wayle-media: it discovers players by bus name, keeps each one's snapshot current from PropertiesChanged, picks the active player the way selection.rs does, and drives the transport (play/pause, next, previous, seek, loop, shuffle).
pulse
Package pulse is the audio service, the Go port of crates/wayle-audio: sinks, sources, and per-application streams kept live from PulseAudio's subscription events, the default devices, per-channel volume and mute, ports, stream routing, and record streams, all over the native protocol (package native), so it works against PulseAudio and pipewire-pulse alike with no libpulse.
Package pulse is the audio service, the Go port of crates/wayle-audio: sinks, sources, and per-application streams kept live from PulseAudio's subscription events, the default devices, per-channel volume and mute, ports, stream routing, and record streams, all over the native protocol (package native), so it works against PulseAudio and pipewire-pulse alike with no libpulse.
upower
Package upower reads battery state from UPower over the system D-Bus, the Go counterpart of crates/wayle-battery's zbus proxy: the DisplayDevice aggregate, the peripherals UPower enumerates beside it, and live updates through PropertiesChanged, DeviceAdded and DeviceRemoved.
Package upower reads battery state from UPower over the system D-Bus, the Go counterpart of crates/wayle-battery's zbus proxy: the DisplayDevice aggregate, the peripherals UPower enumerates beside it, and live updates through PropertiesChanged, DeviceAdded and DeviceRemoved.
upower/upowertest
Package upowertest serves a scriptable UPower on a test bus: the DisplayDevice and enumerated devices, each change announced with the signal the real daemon sends, and every GetAll counted.
Package upowertest serves a scriptable UPower on a test bus: the DisplayDevice and enumerated devices, each change announced with the signal the real daemon sends, and every GetAll counted.
wallpaper/extract
Package extract runs the external color extractor that feeds theming: wallust, matugen, or pywal over the theming monitor's wallpaper (crates/wayle-wallpaper/src/types/color_extractor).
Package extract runs the external color extractor that feeds theming: wallust, matugen, or pywal over the theming monitor's wallpaper (crates/wayle-wallpaper/src/types/color_extractor).
Package settingspage is the contract between lys-settings and the programs that open it: its command line, and the page list it prints so a launcher can offer its pages without linking the app.
Package settingspage is the contract between lys-settings and the programs that open it: its command line, and the page list it prints so a launcher can offer its pages without linking the app.
shell
apptheme
Package apptheme is what every lys-shell GTK-era surface loads at start (bootstrap.rs, lys-settings app/css.rs): the Rust stylesheet bundle with its hot reload, the stylesheet font resolver, and the lys-shell icon registry on the icon search path.
Package apptheme is what every lys-shell GTK-era surface loads at start (bootstrap.rs, lys-settings app/css.rs): the Rust stylesheet bundle with its hot reload, the stylesheet font resolver, and the lys-shell icon registry on the icon search path.
lockclient
Package lockclient is the shell's side of locking: it owns the triggers (logind's Lock signal, `lys-shell lock`, lock-on-start, and a lock found held at startup) and answers each by starting `lys-login lock`, the login screen in its lock mode, as a process of its own.
Package lockclient is the shell's side of locking: it owns the triggers (logind's Lock signal, `lys-shell lock`, lock-on-start, and a lock found held at startup) and answers each by starting `lys-login lock`, the login screen in its lock mode, as a process of its own.
reveal
Package reveal plays the [animations] config on lys-ui revealers: the transition style and duration each transient surface resolves for entering or exiting (the per-surface, global, base cascade), the job of the Rust shell's surface_anim helper.
Package reveal plays the [animations] config on lys-ui revealers: the transition style and duration each transient surface resolves for entering or exiting (the per-surface, global, base cascade), the job of the Rust shell's surface_anim helper.
treetest
Package treetest walks lys-ui widget trees for the shell's surface tests: find the button a user would click, read what the labels say.
Package treetest walks lys-ui widget trees for the shell's surface tests: find the button a user would click, read what the labels say.
widgets
Package widgets is wayle-widgets: the controls the shell surfaces and the settings app share.
Package widgets is wayle-widgets: the controls the shell surfaces and the settings app share.
Package shlex splits and quotes command lines the way the Rust shlex crate (1.3) does, byte for byte: the launcher's hooks, templates, and `-format q` output have to agree with what the Rust shell produced.
Package shlex splits and quotes command lines the way the Rust shlex crate (1.3) does, byte for byte: the launcher's hooks, templates, and `-format q` output have to agree with what the Rust shell produced.
Package spawn runs the shell commands the config names (click actions, power commands) and the apps the launcher starts.
Package spawn runs the shell commands the config names (click actions, power commands) and the apps the launcher starts.
Package strftime formats lys-shell's strftime-style format strings.
Package strftime formats lys-shell's strftime-style format strings.
Package styling resolves lys-shell's design tokens to concrete colors: the Go counterpart of crates/wayle-styling.
Package styling resolves lys-shell's design tokens to concrete colors: the Go counterpart of crates/wayle-styling.
material
Package material computes Material You color schemes from an image, a port of Google's material-color-utilities (the TypeScript release 0.4.0, 2021 color spec): CAM16 and HCT, the Celebi quantizer (Wu, then WSMeans), the seed scorer, tonal palettes and the dynamic scheme roles of every variant, at any contrast level.
Package material computes Material You color schemes from an image, a port of Google's material-color-utilities (the TypeScript release 0.4.0, 2021 color spec): CAM16 and HCT, the Celebi quantizer (Wu, then WSMeans), the seed scorer, tonal palettes and the dynamic scheme roles of every variant, at any contrast level.
Package swaytest runs a private headless sway for tests, so Wayland clients connect to it instead of the developer's session.
Package swaytest runs a private headless sway for tests, so Wayland clients connect to it instead of the developer's session.
third_party
jpeg
Package jpeg is the standard library's image/jpeg decoder with the decoded pixels and the progressive coefficients held in memory-go memory instead of on the Go heap.
Package jpeg is the standard library's image/jpeg decoder with the decoded pixels and the progressive coefficients held in memory-go memory instead of on the Go heap.
Package useraccount describes a user account the way the desktop shows it: login name, real name, home, and avatar.
Package useraccount describes a user account the way the desktop shows it: login name, real name, home, and avatar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL