Add proper screen locker
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user