Added a few useful 'Sample commands' for the Run Command plugin
Summary: Added the following example commands for the Run Command plugin: - Lock Screen - Unlock Screen - Close All Vaults - Forcefully Close All Vaults Reviewers: #plasma, ngraham, albertvaka, nicolasfella, #kde_connect Reviewed By: nicolasfella, #kde_connect Subscribers: ngraham, kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D13136
This commit is contained in:
parent
72fe2b65e0
commit
f7a5c3220b
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ RunCommandConfig::RunCommandConfig(QWidget* parent, const QVariantList& args)
|
|||
QMenu* defaultMenu = new QMenu(this);
|
||||
addSuggestedCommand(defaultMenu, i18n("Suspend"), QStringLiteral("systemctl suspend"));
|
||||
addSuggestedCommand(defaultMenu, i18n("Maximum Brightness"), QStringLiteral("qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness `qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightnessMax`"));
|
||||
addSuggestedCommand(defaultMenu, i18n("Lock Screen"), QStringLiteral("loginctl lock-session"));
|
||||
addSuggestedCommand(defaultMenu, i18n("Unlock Screen"), QStringLiteral("loginctl unlock-session"));
|
||||
addSuggestedCommand(defaultMenu, i18n("Close All Vaults"), QStringLiteral("qdbus org.kde.kded5 /modules/plasmavault closeAllVaults"));
|
||||
addSuggestedCommand(defaultMenu, i18n("Forcefully Close All Vaults"), QStringLiteral("qdbus org.kde.kded5 /modules/plasmavault forceCloseAllVaults"));
|
||||
|
||||
QTableView* table = new QTableView(this);
|
||||
table->horizontalHeader()->setStretchLastSection(true);
|
||||
|
|
Loading…
Reference in a new issue