2025-03-14 21:59:59 -06:00
|
|
|
# qdbus
|
|
|
|
|
|
|
|
|
|
> Inter-Process Communication (IPC) and Remote Procedure Calling (RPC) mechanism originally developed for Linux.
|
|
|
|
|
> More information: <https://doc.qt.io/qt-5/qtdbus-index.html>.
|
|
|
|
|
|
|
|
|
|
- List available service names:
|
|
|
|
|
|
|
|
|
|
`qdbus`
|
|
|
|
|
|
|
|
|
|
- List object paths for a specific service:
|
|
|
|
|
|
|
|
|
|
`qdbus {{service_name}}`
|
|
|
|
|
|
|
|
|
|
- List methods, signals and properties available on a specific object:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`qdbus {{service_name}} /{{path/to/object}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Execute a specific method passing arguments and display the returned value:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`qdbus {{service_name}} /{{path/to/object}} {{method_name}} {{argument1 argument2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
|
|
|
|
|
- Invoke volume up shortcut in a KDE Plasma session:
|
|
|
|
|
|
|
|
|
|
`qdbus {{org.kde.kglobalaccel}} {{/component/kmix}} {{invokeShortcut}} "{{increase_volume}}"`
|
|
|
|
|
|
|
|
|
|
- Gracefully log out and then do nothing, reboot or shut down:
|
|
|
|
|
|
|
|
|
|
`qdbus {{org.kde.Shutdown}} {{/Shutdown}} {{logout|logoutAndReboot|logoutAndShutdown}}`
|