Use hyprland recommended exit method and systemctl for poweroff (#309)

This commit is contained in:
Lucas Alber
2024-10-08 08:59:54 +02:00
committed by GitHub
parent 6da84732a1
commit e30cefcf8b

View File

@@ -1048,16 +1048,16 @@ const options = mkOptions(OPTIONS, {
confirmation: opt(true), confirmation: opt(true),
sleep: opt('systemctl suspend'), sleep: opt('systemctl suspend'),
reboot: opt('systemctl reboot'), reboot: opt('systemctl reboot'),
logout: opt('pkill Hyprland'), logout: opt('hyprctl dispatch exit'),
shutdown: opt('shutdown now'), shutdown: opt('systemctl poweroff'),
}, },
dashboard: { dashboard: {
powermenu: { powermenu: {
confirmation: opt(true), confirmation: opt(true),
sleep: opt('systemctl suspend'), sleep: opt('systemctl suspend'),
reboot: opt('systemctl reboot'), reboot: opt('systemctl reboot'),
logout: opt('pkill Hyprland'), logout: opt('hyprctl dispatch exit'),
shutdown: opt('shutdown now'), shutdown: opt('systemctl poweroff'),
avatar: { avatar: {
image: opt('avatar-default-symbolic'), image: opt('avatar-default-symbolic'),
name: opt<'system' | string>('system'), name: opt<'system' | string>('system'),