dbus_power 0.0.1 copy "dbus_power: ^0.0.1" to clipboard
dbus_power: ^0.0.1 copied to clipboard

PlatformLinux

A Dart library for interacting with Linux power settings via D-Bus, supporting both GNOME Power (session bus) and UPower/freedesktop (system bus) backends

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate dbus_power

Use it

The package has the following executables:

$ dbus-power

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dbus_power

With Flutter:

 $ flutter pub add dbus_power

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dbus_power: ^0.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dbus_power/dbus_power.dart';
0
likes
140
points
27
downloads

Documentation

API reference

Publisher

verified publishergollahalli.com

Weekly Downloads

A Dart library for interacting with Linux power settings via D-Bus, supporting both GNOME Power (session bus) and UPower/freedesktop (system bus) backends

Repository (GitHub)
View/report issues

Topics

#dbus #power #linux

License

MIT (license)

Dependencies

dart_console, dbus

More

Packages that depend on dbus_power