added lockscreen
This commit is contained in:
parent
895c11e4f7
commit
ea28e1eba3
1 changed files with 21 additions and 2 deletions
|
|
@ -39,6 +39,9 @@ in {
|
|||
XF86AudioPrev = "exec playerctl previous";
|
||||
XF86AudioNext = "exec playerctl next";
|
||||
|
||||
# Lock
|
||||
"${mod}+Shift+l" = "exec swaylock -f";
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
|
@ -51,16 +54,32 @@ in {
|
|||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
# App menu
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Lock screen
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font-size = 14;
|
||||
};
|
||||
};
|
||||
|
||||
# Autolock
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = [{
|
||||
event = "before-sleep";
|
||||
command = "${pkgs.lib.getExe pkgs.swaylock} -f";
|
||||
}];
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
# style = {};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
# theme = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue