mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 01:25:42 +02:00
i3-companion: also listen to org.bluez.Device1 ServicesResolved
This is useful to get battery status on connect since it can be a bit late.
This commit is contained in:
parent
573b9c472c
commit
4ef90a4534
1 changed files with 2 additions and 0 deletions
|
@ -782,6 +782,8 @@ async def bluetooth_notifications(i3, event, path, interface, changed, invalid):
|
|||
onlyif=lambda args: (
|
||||
args[0] == "org.bluez.Device1"
|
||||
and "Connected" in args[1]
|
||||
or args[0] == "org.bluez.Device1"
|
||||
and "ServicesResolved" in args[1]
|
||||
or args[0] == "org.bluez.Adapter1"
|
||||
and "Powered" in args[1]
|
||||
or args[0] == "org.bluez.Battery1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue