Add proper screen locker

This commit is contained in:
2022-03-10 12:27:04 +00:00
parent 8be5bbeab8
commit 499c280cb7
2 changed files with 9 additions and 5 deletions

View File

@@ -10,9 +10,6 @@
../progs/rofi
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home = {
username = "daniel";
homeDirectory = "/home/daniel";
@@ -108,6 +105,9 @@
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
git = {
enable = true;
package = pkgs.gitFull;
@@ -157,6 +157,11 @@
syncthing = {
enable = true;
};
screen-locker = {
enable = true;
lockCmd = "${pkgs.i3lock}/bin/i3lock -i /home/daniel/wallpapers/lock.png";
};
};
}

View File

@@ -153,8 +153,7 @@ in {
"${mod}+Shift+j" = "exec --no-startup-id i3utils window move next";
"${mod}+p" = "scratchpad show";
"${mod}+Escape" = "exec i3lock -i /home/daniel/wallpapers/lock.png";
"${mod}+Shift+Escape" = "exec i3lock -i /home/daniel/wallpapers/lock.png && systemctl suspend";
"${mod}+Escape" = "exec loginctl lock-session";
"XF86MonBrightnessUp" = "exec xbacklight -inc 10";
"XF86MonBrightnessDown" = "exec xbacklight -dec 10";