Lock the screen again

This commit is contained in:
Alexander Bantyev 2022-03-23 10:35:23 +03:00
parent af3b930214
commit c37c66c0cb
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@
then args="-s"
else args="-san"
fi
# ${
${
lib.optionalString (config.deviceSpecific.isLaptop)
''USER=balsoft ${pkgs.vlock}/bin/vlock "$args"''
}

View File

@ -3,9 +3,9 @@ let
thm = pkgs.my-lib.thmHash config.themes.colors;
apps = config.defaultApplications;
lock_fork =
pkgs.writeShellScript "lock_fork" "sudo /run/current-system/sw/bin/lock &";
pkgs.writeShellScript "lock_fork" "sudo /run/current-system/sw/bin/lock all &";
lock = pkgs.writeShellScript "lock"
"swaymsg 'output * dpms off'; sudo /run/current-system/sw/bin/lock; swaymsg 'output * dpms on'";
"swaymsg 'output * dpms off'; sudo /run/current-system/sw/bin/lock all; swaymsg 'output * dpms on'";
in {
environment.sessionVariables = {
_JAVA_AWT_WM_NONREPARENTING = "1";