Is there a way to determine from the command line if Valent is connected to my phone? #610
-
I'm looking to write a simple Waybar module that can launch Valent and show a different icon depending if it's connected to my phone or not. Just wondering if there's a simple query I could run? |
Beta Was this translation helpful? Give feedback.
Answered by
andyholmes
Dec 19, 2023
Replies: 1 comment 1 reply
-
The only way to get such information is through D-Bus, so you could query the D-Bus object manager: gdbus call --session \
--dest "ca.andyholmes.Valent" \
--object-path "/ca/andyholmes/Valent" \
--method "org.freedesktop.DBus.ObjectManager.GetManagedObjects" Or if waybar plugins have some support for D-Bus there may be some more convenient methods you can use. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
joekm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The only way to get such information is through D-Bus, so you could query the D-Bus object manager:
Or if waybar plugins have some support for D-Bus there may be some more convenient methods you can use.