Add proper screen locker
This commit is contained in:
@@ -10,9 +10,6 @@
|
|||||||
../progs/rofi
|
../progs/rofi
|
||||||
];
|
];
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = "daniel";
|
username = "daniel";
|
||||||
homeDirectory = "/home/daniel";
|
homeDirectory = "/home/daniel";
|
||||||
@@ -108,6 +105,9 @@
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself.
|
||||||
|
home-manager.enable = true;
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitFull;
|
package = pkgs.gitFull;
|
||||||
@@ -157,6 +157,11 @@
|
|||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
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}+Shift+j" = "exec --no-startup-id i3utils window move next";
|
||||||
|
|
||||||
"${mod}+p" = "scratchpad show";
|
"${mod}+p" = "scratchpad show";
|
||||||
"${mod}+Escape" = "exec i3lock -i /home/daniel/wallpapers/lock.png";
|
"${mod}+Escape" = "exec loginctl lock-session";
|
||||||
"${mod}+Shift+Escape" = "exec i3lock -i /home/daniel/wallpapers/lock.png && systemctl suspend";
|
|
||||||
|
|
||||||
"XF86MonBrightnessUp" = "exec xbacklight -inc 10";
|
"XF86MonBrightnessUp" = "exec xbacklight -inc 10";
|
||||||
"XF86MonBrightnessDown" = "exec xbacklight -dec 10";
|
"XF86MonBrightnessDown" = "exec xbacklight -dec 10";
|
||||||
|
|||||||
Reference in New Issue
Block a user