robert-ancell / x11.dart

Mozilla Public License 2.0
26 stars 2 forks source link

Pub Package

A native Dart implementation of the X window system protocol, version 11 (X11).

import 'package:x11/x11.dart';

var client = X11Client();
await client.connect();

var id = client.generateId();
client.createWindow(id, client.screens[0].window, X11Rectangle(width: 400, height: 300));
await client.changePropertyString(id, 'WM_NAME', 'x11.dart');
client.mapWindow(id);

client.setCloseDownMode(X11CloseDownMode.retainPermanent);

await client.close();