Announcement

Collapse
No announcement yet.

Is possible to invoke a standard keyboard shortcut [or an attached action] via D-Bus?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is possible to invoke a standard keyboard shortcut [or an attached action] via D-Bus?

    "An action, which can be assigned to standard shortcut" - I mean an action, which can be found in the list in:
    System Settings > Shortcuts and Gestures > Standard Keyboard Shortcuts.

    E.g. (such actions): About Application, Copy, Cut, Paste, Undo, Redo and so on.

    Q: Is possible to invoke a standard keyboard shortcut (or an attached action) via D-Bus command? If it is possible, how to do this?

    It is possible to invoke a global keyboard shortcut.
    E.g., the following command invokes a global shortcut "Maximize Window" of KWin component:

    (replace all the "_" with ".")
    qdbus org_kde_kglobalaccel /component/kwin org_kde_kglobalaccel_Component_invokeShortcut "Window Maximize"
Working...
X