xremap 0.14.17

Dynamic key remapp for X and Wayland
Documentation
function notifyActiveWindow(client) {
    if (!client) {
        // Ignore when there is no active window.
        return;
    }

    callDBus(
        "com.k0kubun.Xremap",
        "/com/k0kubun/Xremap",
        "com.k0kubun.Xremap",
        "NotifyActiveWindow",
        "caption" in client ? client.caption : "",
        "resourceClass" in client ? client.resourceClass : "",
        "resourceName" in client ? client.resourceName : "",
    );
}

// Send info about current window right away
let active_window = workspace.activeClient
    ? workspace.activeClient
    : workspace.activeWindow;

notifyActiveWindow(active_window);