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:
@@ -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"] }
|
||||
|
||||
Reference in New Issue
Block a user