Compare commits
2 commits
955bd1f8c1
...
69d5b7b480
Author | SHA1 | Date | |
---|---|---|---|
69d5b7b480 | |||
bbb03fdd79 |
3 changed files with 4 additions and 5 deletions
|
@ -24,8 +24,8 @@ ShellRoot {
|
||||||
bottom: 50
|
bottom: 50
|
||||||
}
|
}
|
||||||
|
|
||||||
width: content.width
|
implicitWidth: content.width
|
||||||
height: content.height
|
implicitHeight: content.height
|
||||||
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
|
|
|
@ -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