quickshell: use hyprlock for lock and power actions

swaylock broke and the stack already locks with hyprlock everywhere else;
point the desktop lockCommand and power menu at hyprlock and drop the
now-identical laptop/desktop branches.
This commit is contained in:
2026-06-01 14:06:53 +02:00
parent 9525ff12db
commit 5c585697ae
+1 -5
View File
@@ -61,15 +61,11 @@ Singleton {
// Idle daemon
readonly property string idleProcess: "hypridle"
readonly property string lockCommand: "{{ if $isLaptop }}hyprlock{{ else }}swaylock{{ end }}"
readonly property string lockCommand: "hyprlock"
// Power commands
readonly property var powerActions: [
{{- if $isLaptop }}
{ command: ["hyprlock"] },
{{- else }}
{ command: ["swaylock"] },
{{- end }}
{ command: ["hyprshutdown"] },
{ command: ["hyprshutdown", "-t", "Restarting...", "--post-cmd", "systemctl reboot"] },
{ command: ["hyprshutdown", "-t", "Powering off...", "--post-cmd", "systemctl poweroff"] }