Skip to content

Is there a way to determine from the command line if Valent is connected to my phone? #610

Answered by andyholmes
joekm asked this question in Help
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joekm
Comment options

Answer selected by joekm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants