add xss-lock and slock

This commit is contained in:
Motiejus Jakštys 2023-09-18 13:23:48 +03:00
parent 710f7352fa
commit 89bfc8c459
2 changed files with 6 additions and 1 deletions

View File

@ -141,6 +141,11 @@
enable = true; enable = true;
enableSshSupport = true; enableSshSupport = true;
}; };
services.screen-locker = {
enable = true;
lockCmd = "${pkgs.slock}/bin/slock xset dpms force off";
};
}; };
}; };
} }

View File

@ -331,7 +331,7 @@ globalkeys = gears.table.join(
{description = "show the menubar", group = "launcher"}), {description = "show the menubar", group = "launcher"}),
-- My customizations -- My customizations
awful.key({ modkey }, "x", function() awful.key({ modkey }, "x", function()
awful.spawn.with_shell("xset dpms force off; sleep 0.1; slock") awful.spawn.with_shell("sleep 0.2; slock xset dpms force off")
end) end)
) )