2024-04-15 11:21:51 +02:00
|
|
|
// https://git.outfoxxed.me/outfoxxed/quickshell-examples/src/branch/master/wlogout
|
2024-04-15 00:31:19 +02:00
|
|
|
import QtQuick
|
|
|
|
import Quickshell
|
|
|
|
|
|
|
|
ShellRoot {
|
|
|
|
WLogout {
|
|
|
|
LogoutButton {
|
|
|
|
command: "hyprlock"
|
|
|
|
keybind: Qt.Key_K
|
|
|
|
text: "Lock"
|
|
|
|
icon: "lock"
|
|
|
|
}
|
|
|
|
|
|
|
|
LogoutButton {
|
|
|
|
command: "loginctl terminate-user $USER"
|
|
|
|
keybind: Qt.Key_E
|
|
|
|
text: "Logout"
|
|
|
|
icon: "logout"
|
|
|
|
}
|
|
|
|
|
|
|
|
LogoutButton {
|
|
|
|
command: "systemctl suspend"
|
|
|
|
keybind: Qt.Key_U
|
|
|
|
text: "Suspend"
|
|
|
|
icon: "suspend"
|
|
|
|
}
|
|
|
|
|
|
|
|
LogoutButton {
|
|
|
|
command: "systemctl hibernate"
|
|
|
|
keybind: Qt.Key_H
|
|
|
|
text: "Hibernate"
|
|
|
|
icon: "hibernate"
|
|
|
|
}
|
|
|
|
|
|
|
|
LogoutButton {
|
|
|
|
command: "systemctl poweroff"
|
|
|
|
keybind: Qt.Key_K
|
|
|
|
text: "Shutdown"
|
|
|
|
icon: "shutdown"
|
|
|
|
}
|
|
|
|
|
|
|
|
LogoutButton {
|
|
|
|
command: "systemctl reboot"
|
|
|
|
keybind: Qt.Key_R
|
|
|
|
text: "Reboot"
|
|
|
|
icon: "reboot"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|