Skip to content
Snippets Groups Projects
Commit d5908085 authored by Jens Nolte's avatar Jens Nolte
Browse files

Make autolock before suspend configurable

parent a3bf7bcb
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ bindsym Ctrl+Shift+Print exec grim -g "$(slurp)"
# suspend
bindsym $mod+Print exec systemctl suspend
exec swayidle -w before-sleep "swaylock -f -i $lockscreen"
${if cfg.autoLockBeforeSuspend then ''exec swayidle -w before-sleep "swaylock -f -i $lockscreen"'' else ""}
# subraum
#bindsym $mod+Delete exec ~/run/subraum/hackbuzzer
......
......@@ -15,7 +15,12 @@ in
type = types.str;
default = "jens";
};
autoLockBeforeSuspend = mkOption {
type = types.bool;
default = true;
};
};
};
config = mkIf cfg.enable {
home-manager.users."${cfg.user}" = { pkgs, ... }: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment