Change swaylock config

This commit is contained in:
Alexander Wainwright
2025-12-26 14:37:21 +10:00
parent 54f8d30d93
commit 94b8527445

View File

@@ -150,7 +150,6 @@ in
startup = [
{ command = "waybar"; }
{ command = "mako"; }
{ command = "swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg \"output * dpms off\"' resume 'swaymsg \"output * dpms on\"' timeout 900 'systemctl suspend' before-sleep 'swaylock -f'"; }
];
keybindings = let
@@ -208,6 +207,18 @@ in
};
};
services.swayidle = {
enable = true;
timeouts = [
{ timeout = 300; command = "swaylock -f"; }
{ timeout = 600; command = "swaymsg \"output * dpms off\""; resumeCommand = "swaymsg \"output * dpms on\""; }
{ timeout = 900; command = "systemctl suspend"; }
];
events = [
{ event = "before-sleep"; command = "swaylock -f"; }
];
};
programs.rofi = {
enable = true;
font = "JetBrainsMono Nerd Font 12";