1
0
Fork 0

wlogout: add example

This commit is contained in:
outfoxxed 2024-03-08 04:30:51 -08:00
parent 56dc79816b
commit bc279df183
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
11 changed files with 182 additions and 0 deletions

48
wlogout/shell.qml Normal file
View file

@ -0,0 +1,48 @@
import QtQuick
import Quickshell
ShellRoot {
WLogout {
WlButton {
command: "loginctl lock-screen"
keybind: Qt.Key_K
text: "Lock"
icon: "lock"
}
WlButton {
command: "loginctl terminate-user $USER"
keybind: Qt.Key_E
text: "Logout"
icon: "logout"
}
WlButton {
command: "systemctl suspend"
keybind: Qt.Key_U
text: "Suspend"
icon: "suspend"
}
WlButton {
command: "systemctl hibernate"
keybind: Qt.Key_H
text: "Hibernate"
icon: "hibernate"
}
WlButton {
command: "systemctl poweroff"
keybind: Qt.Key_K
text: "Shutdown"
icon: "shutdown"
}
WlButton {
command: "systemctl reboot"
keybind: Qt.Key_R
text: "Reboot"
icon: "reboot"
}
}
}