1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

bluetooth: integrate with DMS API v9 - Supports proper pairing with an agent & pin, passcode, etc.

This commit is contained in:
bbedward
2025-10-23 11:54:22 -04:00
parent 61d68b1f76
commit 1311da7258
6 changed files with 482 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
pragma Singleton
pragma ComponentBehavior: Bound
pragma ComponentBehavior
import QtCore
import QtQuick
@@ -640,7 +640,7 @@ Singleton {
const enrichedToplevel = {
"appId": bestMatch.appId,
"title": bestMatch.title,
"activated": bestMatch.activated,
"activated": niriWindow.is_focused ?? false,
"niriWindowId": niriWindow.id,
"niriWorkspaceId": niriWindow.workspace_id,
"activate": function () {
@@ -726,7 +726,7 @@ Singleton {
const enrichedToplevel = {
"appId": bestMatch.appId,
"title": bestMatch.title,
"activated": bestMatch.activated,
"activated": niriWindow.is_focused ?? false,
"niriWindowId": niriWindow.id,
"niriWorkspaceId": niriWindow.workspace_id,
"activate": function () {
@@ -753,12 +753,10 @@ Singleton {
}
function generateNiriLayoutConfig() {
const niriSocket = Quickshell.env("NIRI_SOCKET")
if (!niriSocket || niriSocket.length === 0)
return
if (configGenerationPending)
if (!CompositorService.isNiri || configGenerationPending)
return
suppressNextToast()
configGenerationPending = true
configGenerationDebounce.restart()
}