wlogout: add example
This commit is contained in:
parent
56dc79816b
commit
bc279df183
11 changed files with 182 additions and 0 deletions
48
wlogout/shell.qml
Normal file
48
wlogout/shell.qml
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue