2024-03-08 12:30:51 +00:00
|
|
|
import QtQuick
|
|
|
|
import Quickshell
|
|
|
|
|
|
|
|
ShellRoot {
|
|
|
|
WLogout {
|
2024-03-11 13:01:19 +00:00
|
|
|
LogoutButton {
|
2024-03-08 12:30:51 +00:00
|
|
|
command: "loginctl lock-screen"
|
|
|
|
keybind: Qt.Key_K
|
|
|
|
text: "Lock"
|
|
|
|
icon: "lock"
|
|
|
|
}
|
|
|
|
|
2024-03-11 13:01:19 +00:00
|
|
|
LogoutButton {
|
2024-03-08 12:30:51 +00:00
|
|
|
command: "loginctl terminate-user $USER"
|
|
|
|
keybind: Qt.Key_E
|
|
|
|
text: "Logout"
|
|
|
|
icon: "logout"
|
|
|
|
}
|
|
|
|
|
2024-03-11 13:01:19 +00:00
|
|
|
LogoutButton {
|
2024-03-08 12:30:51 +00:00
|
|
|
command: "systemctl suspend"
|
|
|
|
keybind: Qt.Key_U
|
|
|
|
text: "Suspend"
|
|
|
|
icon: "suspend"
|
|
|
|
}
|
|
|
|
|
2024-03-11 13:01:19 +00:00
|
|
|
LogoutButton {
|
2024-03-08 12:30:51 +00:00
|
|
|
command: "systemctl hibernate"
|
|
|
|
keybind: Qt.Key_H
|
|
|
|
text: "Hibernate"
|
|
|
|
icon: "hibernate"
|
|
|
|
}
|
|
|
|
|
2024-03-11 13:01:19 +00:00
|
|
|
LogoutButton {
|
2024-03-08 12:30:51 +00:00
|
|
|
command: "systemctl poweroff"
|
|
|
|
keybind: Qt.Key_K
|
|
|
|
text: "Shutdown"
|
|
|
|
icon: "shutdown"
|
|
|
|
}
|
|
|
|
|
2024-03-11 13:01:19 +00:00
|
|
|
LogoutButton {
|
2024-03-08 12:30:51 +00:00
|
|
|
command: "systemctl reboot"
|
|
|
|
keybind: Qt.Key_R
|
|
|
|
text: "Reboot"
|
|
|
|
icon: "reboot"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|