qdbus

a communication-interface for qt-based applications

TLDR

List available service names

$ qdbus
copy

List object paths for a specific service

$ qdbus [service_name]
copy

List methods, signals and properties available on a specific object

$ qdbus [service_name] [/path/to/object]
copy

Execute a specific method passing arguments and display the returned value

$ qdbus [service_name] [/path/to/object] [method_name] [argument1] [argument2]
copy

Display the current brightness value in a KDE Plasma session

$ qdbus [org.kde.Solid.PowerManagement] [/org/kde/Solid/PowerManagement/Actions/BrightnessControl] [org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness]
copy

Set a specific brightness to a KDE Plasma session

$ qdbus [org.kde.Solid.PowerManagement] [/org/kde/Solid/PowerManagement/Actions/BrightnessControl] [org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness] [5000]
copy

Invoke volume up shortcut in a KDE Plasma session

$ qdbus [org.kde.kglobalaccel] [/component/kmix] [invokeShortcut] "[increase_volume]"
copy

Display help

$ qdbus --help
copy

Help

Usage: qdbus [--system] [--bus busaddress] [--literal] [servicename] [path] [method] [args] 

  servicename       the service to connect to (e.g., org.freedesktop.DBus) 
  path              the path to the object (e.g., /) 
  method            the method to call, with or without the interface 
  args              arguments to pass to the call 
With 0 arguments, qdbus will list the services available on the bus 
With just the servicename, qdbus will list the object paths available on the service 
With service name and object path, qdbus will list the methods, signals and properties available on the object 

Options:
  --system          connect to the system bus 
  --bus busaddress  connect to a custom bus 
  --literal         print replies literally 

Copied to clipboard
Raspberry