feat: Add support for swww and wallust and clean up a few things

This commit is contained in:
ferreo 2025-07-13 14:09:59 +01:00
parent d828e3d323
commit bd0135ec03
22 changed files with 1053 additions and 281 deletions

View file

@ -232,7 +232,7 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
onClicked: {
Processes.reboot()
reboot()
systemMenu.visible = false
}
}
@ -270,7 +270,7 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
onClicked: {
Processes.logout()
logout()
systemMenu.visible = false
}
}
@ -308,7 +308,7 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
onClicked: {
Processes.shutdown()
shutdown()
systemMenu.visible = false
}
}
@ -342,6 +342,32 @@ Rectangle {
}
}
Process {
id: shutdownProcess
command: ["shutdown", "-h", "now"]
running: false
}
Process {
id: rebootProcess
command: ["reboot"]
running: false
}
Process {
id: logoutProcess
command: ["niri", "msg", "action", "quit", "--skip-confirmation"]
running: false
}
function shutdown() {
shutdownProcess.running = true
}
function reboot() {
rebootProcess.running = true
}
function logout() {
logoutProcess.running = true
}
property bool panelVisible: false
// Trigger initial update when panel becomes visible