gnome-dbus-api 0.1.0

A simple API to interact with GNOME DBus and Gsettings
Documentation

Rust dbus gnome shell API

A friendly API for interacting with gnome shell, freedesktop and other D-Bus services that are available on Ubuntu.

Features

  • Power management
    • Power off
    • Reboot
    • Suspend
  • Locales
    • Get x11 layout
  • Gnome extensions
    • Get extensions
    • Enable extension
    • Disable extension
    • Uninstall extension
  • Gnome shell screenshot
    • Pick color
  • Settings
    • Night light
      • Get night light status
      • Set night light status
      • Get night light temperature
      • Set night light temperature

Interfaces

  • net.hadess.PowerProfiles: power profiles (power save, balanced, performance)
  • org.bluez: bluetooth devices, devices stats
  • org.freedesktop.NetworkManager: network manager, wifi, connections
  • org.freedesktop.UDisks2: disks, partitions, filesystems
  • org.freedesktop.UPower: power management, battery, external devices battery, battery degradation, etc...
  • org.a11y.Bus: accessibility bus
  • org.freedesktop.FileManager1: file manager (nautilus)
  • org.gnome.SettingsDaemon.*: settings daemon

Devtools

  • D-Spy: search for and inspect D-Bus services
    D-Spy example

Dbus sources

Rust bindings

  • zbus a beatifully designed abstraction over D-Bus
  • zvariant a crate for working with D-Bus types