mmstick,
@mmstick@fosstodon.org avatar

New command line utility for displaying and configuring Wayland display outputs: cosmic-randr. This will be used by the display settings page in COSMIC.

On the left is a cosmic-term window displaying a colorized list output. On the right, another cosmic-term window displaying the list in a KDL syntax format.

The KDL format provides a stable interface for scripts and programs to get a list of displays and their supported output modes.

whynothugo,
@whynothugo@fosstodon.org avatar

@mmstick KDL looks very similar to scfg.

Is this using an existing wayland protocol (to configure displays), or is COSMIC using its own? (AFAIK there’s no “standard” one yet).

mmstick,
@mmstick@fosstodon.org avatar

@whynothugo It is based on the wlr-output protocols, which the COSMIC compositor supports. There are some features we need that aren't currently supported in these protocols, but this is enough to get started with our display settings page.

KDL is a human-friendly alternative to XML. It's as easy on the eyes to read as it is to edit by hand. Has some useful tricks for reducing repetitiveness and annotating data types. The spec reached 1.0.0 sometime around 2021, and started with a Rust crate.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • mdbf
  • thenastyranch
  • magazineikmin
  • khanakhh
  • rosin
  • Durango
  • ethstaker
  • Youngstown
  • slotface
  • osvaldo12
  • kavyap
  • tester
  • ngwrru68w68
  • megavids
  • GTA5RPClips
  • InstantRegret
  • tacticalgear
  • cubers
  • everett
  • Leos
  • normalnudes
  • anitta
  • modclub
  • cisconetworking
  • provamag3
  • JUstTest
  • lostlight
  • All magazines