mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-09 12:44:32 +02:00
i3-companion: tentative to register for battery update from PulseAudio
Unfortunately, I am unable to receive anything... Maybe the path not existing when registering does not help.
This commit is contained in:
parent
48afaab4c7
commit
59382c1739
1 changed files with 9 additions and 0 deletions
|
@ -743,6 +743,15 @@ async def bluetooth_notifications(i3, event, path, interface, changed, invalid):
|
||||||
and "Percentage" in args[1]
|
and "Percentage" in args[1]
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
DBusSignal(
|
||||||
|
path="/org/pulseaudio",
|
||||||
|
interface="org.freedesktop.DBus.Properties",
|
||||||
|
member="PropertiesChanged",
|
||||||
|
signature="sa{sv}as",
|
||||||
|
onlyif=lambda args: (
|
||||||
|
args[0] == "org.bluez.BatteryProvider1" and "Percentage" in args[1]
|
||||||
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
@retry(2)
|
@retry(2)
|
||||||
@debounce(1)
|
@debounce(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue