wlogout: fix breakages
This commit is contained in:
parent
955bd1f8c1
commit
bbb03fdd79
2 changed files with 2 additions and 3 deletions
|
@ -11,11 +11,10 @@ QtObject {
|
||||||
|
|
||||||
readonly property var process: Process {
|
readonly property var process: Process {
|
||||||
command: ["sh", "-c", button.command]
|
command: ["sh", "-c", button.command]
|
||||||
manageLifetime: false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function exec() {
|
function exec() {
|
||||||
process.running = true;
|
process.startDetached();
|
||||||
Qt.quit();
|
Qt.quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import Quickshell
|
||||||
ShellRoot {
|
ShellRoot {
|
||||||
WLogout {
|
WLogout {
|
||||||
LogoutButton {
|
LogoutButton {
|
||||||
command: "loginctl lock-screen"
|
command: "loginctl lock-session"
|
||||||
keybind: Qt.Key_K
|
keybind: Qt.Key_K
|
||||||
text: "Lock"
|
text: "Lock"
|
||||||
icon: "lock"
|
icon: "lock"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue