Skip to content

Instantly share code, notes, and snippets.

@kreijack
kreijack / query-locale.c
Created January 10, 2021 17:07
Query the service org.freedesktop.locale1 about the current X11 keyboard configuration
/*
* Author: Goffredo Baroncelli <[email protected]>
* Date: 2021/01/10
* File name: query-locale.c
* Derived:
* http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html
* man sd_bus_get_property_string
* man org.freedesktop.locale1
* Description:
* Query the service org.freedesktop.locale1 about the current X11