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

PlatformLinux

A dart library to get and set backgrounds on multiple GUI linux platforms.

example/example.dart

import 'package:wallman/wallman.dart';
import 'dart:io';

void main() async {
  // Auto detect backend and store its instance in wall identifier
  var wall = getBackend();

  // Prints the list of currently set wallpaper(s).
  print(await wall.getWall());

  // Prints the name of backend in use
  print("The backend in use is: ${wall.name}");

  // Set wallpaper to /usr/share/backgrounds/xfce/xfce-teal.jpg
  await wall.setWall("/home/cat/bg/gruv.png");

  exit(1);
}
5
likes
120
pub points
0%
popularity

Publisher

unverified uploader

A dart library to get and set backgrounds on multiple GUI linux platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

args, dbus, gsettings, ini, path

More

Packages that depend on wallman