xdg_locale.dart

Native Dart client library to access the D-Bus interface of systemd-localed.

CI codecov

Example

import 'package:xdg_locale/xdg_locale.dart';

void main() async {
  final service = XdgLocaleClient();
  await service.connect();
  print('X11 keyboard layout: ${service.x11Layout}');
  print('X11 keyboard variant: ${service.x11Variant}');
  await service.close();
}

Contributing to xdg_locale.dart

We welcome contributions! See the contribution guide for more details.

Libraries

xdg_locale