desktop/

directory
v0.5.1 Latest Latest
Warning

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

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

README

lys-desktop

The packages the shell, login and settings apps of lys 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

The manual maps its packages.

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: file discovery, imports, key names, defaults, layering (defaults < config file < runtime overrides), and failure behavior.
Package config loads lys-shell's user configuration: file discovery, 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: 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: 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 drmconn names DRM connectors from their sysfs entries, the names compositors give their outputs.
Package drmconn names DRM connectors from their sysfs entries, the names compositors give their outputs.
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 mail service's recursive maildir watch, the brightness sysfs watch).
Package fswatch turns inotify events into coalesced change ticks (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.
Package glob is the blocklist matcher: case-insensitive `*` wildcards, shared by the notification blocklist and the systray blacklist.
Package i18n is lys's Fluent localization: a loader, bundle and parser following i18n-embed 0.16 (FluentLanguageLoader), fluent-bundle 0.16 and fluent-syntax 0.12, language negotiation by language subtag, and CLDR cardinal plural rules for every catalogue it ships: en-US, de, es, fr, it, nl and pt (European Portuguese).
Package i18n is lys's Fluent localization: a loader, bundle and parser following i18n-embed 0.16 (FluentLanguageLoader), fluent-bundle 0.16 and fluent-syntax 0.12, language negotiation by language subtag, and CLDR cardinal plural rules for every catalogue it ships: en-US, de, es, fr, it, nl and pt (European Portuguese).
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 manages lys-shell's 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 manages lys-shell's 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 wallpapers can use: 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 wallpapers can use: 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 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: 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: 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.
service
backlight
Package backlight is the kernel's backlights as the lys apps share them: sysfs enumeration and reads, logind's SetBrightness as the write path with a direct sysfs fallback, and a watch that ticks whenever a level may have changed.
Package backlight is the kernel's backlights as the lys apps share them: sysfs enumeration and reads, logind's SetBrightness as the write path with a direct sysfs fallback, and a watch that ticks whenever a level may have changed.
backlight/backlighttest
Package backlighttest fakes the sysfs backlight class directory for tests of code that reads or writes backlights.
Package backlighttest fakes the sysfs backlight class directory for tests of code that reads or writes backlights.
clipboard
Package clipboard is the session's clipboard history: 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: 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 (docs/wm/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 (docs/wm/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): it discovers players by bus name, keeps each one's snapshot current from PropertiesChanged, picks the active player (SelectBest), and drives the transport (play/pause, next, previous, seek, loop, shuffle).
Package mpris is the media player service over MPRIS2 (D-Bus): it discovers players by bus name, keeps each one's snapshot current from PropertiesChanged, picks the active player (SelectBest), and drives the transport (play/pause, next, previous, seek, loop, shuffle).
pulse
Package pulse is the audio service: 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: 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 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 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.
Package extract runs the external color extractor that feeds theming: wallust, matugen, or pywal over the theming monitor's wallpaper.
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 surface loads at start: the 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 surface loads at start: the 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).
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).
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 holds the controls the shell surfaces and the settings app share.
Package widgets holds the controls the shell surfaces and the settings app share.
Package shlex splits and quotes command lines for the launcher's hooks, templates, and `-format q` output.
Package shlex splits and quotes command lines for the launcher's hooks, templates, and `-format q` output.
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 splashframe is the boot splash's frame as both sides of the hand-over to the greeter compute it: the grid every splash state sits on, the logo and where it goes, and the record of the splash's last frame that the greeter reproduces as its first.
Package splashframe is the boot splash's frame as both sides of the hand-over to the greeter compute it: the grid every splash state sits on, the logo and where it goes, and the record of the splash's last frame that the greeter reproduces as its first.
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.
Package styling resolves lys-shell's design tokens to concrete colors.
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 tokens is the one definition of the design every lys surface draws with: the default palette, the typeface, the type scale, spacing, radii and the field.
Package tokens is the one definition of the design every lys surface draws with: the default palette, the typeface, the type scale, spacing, radii and the field.
Package uevent reads the kernel's device events from its own uevent netlink group, which carries ACTION, SUBSYSTEM and the rest of each event without depending on udevd having processed it, and which unprivileged processes may read.
Package uevent reads the kernel's device events from its own uevent netlink group, which carries ACTION, SUBSYSTEM and the rest of each event without depending on udevd having processed it, and which unprivileged processes may read.
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