Add screen-locker

This commit is contained in:
Paul-Henri Froidmont 2020-02-23 21:40:47 +01:00
parent 527a982bb2
commit 5fff35c645
2 changed files with 8 additions and 2 deletions

View file

@ -86,7 +86,7 @@ myRemoveKeys = [
myAdditionalKeys = [ myAdditionalKeys = [
("M-q", kill), ("M-q", kill),
("M-x", spawn "~/.xmonad/scripts/lock.sh"), ("M-x", spawn "i3lock -e -f -c 000000 -i ~/.wallpaper.png"),
("M-S-h", sendMessage (IncMasterN 1)), ("M-S-h", sendMessage (IncMasterN 1)),
("M-S-l", sendMessage (IncMasterN (-1))), ("M-S-l", sendMessage (IncMasterN (-1))),
("M-S-<Return>", windows W.swapMaster), ("M-S-<Return>", windows W.swapMaster),

View file

@ -21,6 +21,7 @@
xorg.xwininfo xorg.xwininfo
xorg.xkill xorg.xkill
scrot scrot
i3lock
]; ];
home.keyboard = { home.keyboard = {
layout = "fr"; layout = "fr";
@ -156,4 +157,9 @@
}; };
}; };
}; };
} services.screen-locker = {
enable = true;
inactiveInterval = 5;
lockCmd = "\${pkgs.i3lock}/bin/i3lock -e -f -c 000000 -i ~/.wallpaper.png";
};
}