Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
3ca55ad7
Commit
3ca55ad7
authored
Jul 24, 2020
by
Himanshu Rajput
Browse files
Update plugins/runcommand/runcommand_config.cpp
parent
ef73ce6f
Pipeline
#28274
failed with stage
in 2 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/runcommand/runcommand_config.cpp
View file @
3ca55ad7
...
...
@@ -49,6 +49,8 @@ RunCommandConfig::RunCommandConfig(QWidget* parent, const QVariantList& args)
}
QMenu
*
defaultMenu
=
new
QMenu
(
this
);
addSuggestedCommand
(
defaultMenu
,
i18n
(
"Shutdown"
),
QStringLiteral
(
"systemctl poweroff"
));
addSuggestedCommand
(
defaultMenu
,
i18n
(
"Reboot"
),
QStringLiteral
(
"systemctl reboot"
));
addSuggestedCommand
(
defaultMenu
,
i18n
(
"Suspend"
),
QStringLiteral
(
"systemctl suspend"
));
addSuggestedCommand
(
defaultMenu
,
i18n
(
"Maximum Brightness"
),
QStringLiteral
(
"%0 org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness `%0 org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightnessMax`"
).
arg
(
qdbusExe
));
addSuggestedCommand
(
defaultMenu
,
i18n
(
"Lock Screen"
),
QStringLiteral
(
"loginctl lock-session"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment