Fix lockscreen temperature, System Panel, small change in shell.qml

This commit is contained in:
Ly-sec 2025-07-30 13:59:08 +02:00
parent ad13abdac2
commit 3777703501
3 changed files with 90 additions and 55 deletions

View file

@ -155,7 +155,7 @@ Rectangle {
Rectangle {
width: 160
height: 180
height: 220
color: Theme.surface
radius: 8
border.color: Theme.outline
@ -395,34 +395,54 @@ Rectangle {
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
}
Process {
id: suspendProcess
command: ["systemctl", "suspend"]
running: false
}
Process {
id: logoutProcessNiri
command: ["niri", "msg", "action", "quit", "--skip-confirmation"]
running: false
}
Process {
id: logoutProcessHyprland
command: ["hyprctl", "dispatch", "exit"]
running: false
}
function logout() {
if (WorkspaceManager.isNiri) {
logoutProcessNiri.running = true;
} else if (WorkspaceManager.isHyprland) {
logoutProcessHyprland.running = true;
} else {
// fallback or error
console.warn("No supported compositor detected for logout");
}
}
function suspend() {
suspendProcess.running = true;
}
function shutdown() {
shutdownProcess.running = true;
}
function reboot() {
rebootProcess.running = true;
}
function logout() {
logoutProcess.running = true;
}
property bool panelVisible: false
@ -453,4 +473,4 @@ Rectangle {
LockScreen {
id: lockScreen
}
}
}