Save emacs session before shutdown with a script

This commit is contained in:
2021-04-30 00:00:50 +02:00
parent 883903f636
commit be88ce64fa
2 changed files with 18 additions and 2 deletions

View File

@@ -286,8 +286,8 @@ bindsym $mod+Shift+p mode "$Pause-break"
set $Pause-break (p) poweroff, (r) reboot
mode "$Pause-break" {
bindsym s exec --no-startup-id systemctl poweroff , mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym s exec --no-startup-id ~/.local/share/scripts/power-manager "poweroff", mode "default"
bindsym r exec --no-startup-id ~/.local/share/scripts/power-manager "reboot", mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"