From 3d8dbf58e34dfaa4df0a173bc4f97c19b79ac9f5 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 3 Oct 2021 08:00:34 +0200 Subject: [PATCH] i3-companion: listen on generic of.DBus.Properties for wireless signal NM 1.32 does not have the custom property anymore. --- bin/i3-companion | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/i3-companion b/bin/i3-companion index f87da88..e021f62 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -873,9 +873,13 @@ async def network_manager_notifications(i3, event, path, state, reason): signature="uu", ), DBusSignal( - interface="org.freedesktop.NetworkManager.AccessPoint", + path="/org/freedesktop/NetworkManager/AccessPoint", + interface="org.freedesktop.DBus.Properties", member="PropertiesChanged", - signature="a{sv}", + signature="sa{sv}as", + onlyif=lambda args: ( + args[0] == "org.freedesktop.NetworkManager.AccessPoint" + ), ), ) @retry(2)