Change swaylock config
This commit is contained in:
parent
54f8d30d93
commit
94b8527445
1 changed files with 12 additions and 1 deletions
|
|
@ -150,7 +150,6 @@ in
|
||||||
startup = [
|
startup = [
|
||||||
{ command = "waybar"; }
|
{ command = "waybar"; }
|
||||||
{ command = "mako"; }
|
{ 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
|
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 = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = "JetBrainsMono Nerd Font 12";
|
font = "JetBrainsMono Nerd Font 12";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue