macbook: lock directly before sleep; restyle lockscreen off-center

This commit is contained in:
rope 2026-08-15 11:37:40 +01:00
parent a9ea4c1f10
commit 960ee94e81
2 changed files with 31 additions and 15 deletions

View file

@ -435,7 +435,12 @@ in
settings = {
general = {
lock_cmd = "qs ipc call lock lock";
before_sleep_cmd = "loginctl lock-session";
# Lock directly, not via `loginctl lock-session`: hypridle waits
# for before_sleep_cmd to exit before releasing its sleep
# inhibitor, but the loginctl → logind Lock signal → lock_cmd
# detour is async and the box can suspend unlocked. Lid close
# (HandleLidSwitch=suspend) goes through here too.
before_sleep_cmd = "qs ipc call lock lock";
after_sleep_cmd = "hyprctl dispatch dpms on";
};
listener = [