summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/lock/Buttons.qml8
-rw-r--r--modules/session/Content.qml8
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/lock/Buttons.qml b/modules/lock/Buttons.qml
index 66833ab..1995151 100644
--- a/modules/lock/Buttons.qml
+++ b/modules/lock/Buttons.qml
@@ -50,22 +50,22 @@ Item {
SessionButton {
icon: "logout"
- command: ["loginctl", "terminate-user", ""]
+ command: Config.session.commands.logout
}
SessionButton {
icon: "power_settings_new"
- command: ["systemctl", "poweroff"]
+ command: Config.session.commands.shutdown
}
SessionButton {
icon: "downloading"
- command: ["systemctl", "hibernate"]
+ command: Config.session.commands.hibernate
}
SessionButton {
icon: "cached"
- command: ["systemctl", "reboot"]
+ command: Config.session.commands.reboot
}
Behavior on anchors.margins {
diff --git a/modules/session/Content.qml b/modules/session/Content.qml
index 2603bf9..d90c0bc 100644
--- a/modules/session/Content.qml
+++ b/modules/session/Content.qml
@@ -23,7 +23,7 @@ Column {
id: logout
icon: "logout"
- command: ["loginctl", "terminate-user", ""]
+ command: Config.session.commands.logout
KeyNavigation.down: shutdown
@@ -46,7 +46,7 @@ Column {
id: shutdown
icon: "power_settings_new"
- command: ["systemctl", "poweroff"]
+ command: Config.session.commands.shutdown
KeyNavigation.up: logout
KeyNavigation.down: hibernate
@@ -68,7 +68,7 @@ Column {
id: hibernate
icon: "downloading"
- command: ["systemctl", "hibernate"]
+ command: Config.session.commands.hibernate
KeyNavigation.up: shutdown
KeyNavigation.down: reboot
@@ -78,7 +78,7 @@ Column {
id: reboot
icon: "cached"
- command: ["systemctl", "reboot"]
+ command: Config.session.commands.reboot
KeyNavigation.up: hibernate
}