From 1722117f90c7be84a91df4d8d2ce3f36f516a381 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Wed, 10 Mar 2021 08:19:30 -0300 Subject: [PATCH] qdbus: add page (#5360) --- pages/common/qdbus.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/qdbus.md diff --git a/pages/common/qdbus.md b/pages/common/qdbus.md new file mode 100644 index 0000000000..3d060c6626 --- /dev/null +++ b/pages/common/qdbus.md @@ -0,0 +1,36 @@ +# qdbus + +> Inter-Process Communication (IPC) and Remote Procedure Calling (RPC) mechanism originally developed for Linux. +> More information: . + +- 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: + +`qdbus {{service_name}} {{/path/to/object}}` + +- Execute a specific method passing arguments and display the returned value: + +`qdbus {{service_name}} {{/path/to/object}} {{method_name}} {{argument1}} {{argument2}}` + +- 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}}"` + +- Display help: + +`qdbus --help`