Change swaylock config
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user