macbook: lock directly before sleep; restyle lockscreen off-center
This commit is contained in:
parent
a9ea4c1f10
commit
960ee94e81
2 changed files with 31 additions and 15 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue