Update modules/users.nix modules/workspace/i3/default.nix
This commit is contained in:
parent
b123e5378c
commit
8983481dc1
@ -40,6 +40,8 @@
|
|||||||
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
|
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
security.wrappers.vlock.source = "${pkgs.vlock}/bin/vlock";
|
||||||
|
|
||||||
security.pam.u2f = {
|
security.pam.u2f = {
|
||||||
control = "sufficient";
|
control = "sufficient";
|
||||||
cue = true;
|
cue = true;
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
let
|
let
|
||||||
thm = config.themes.colors;
|
thm = config.themes.colors;
|
||||||
apps = config.defaultApplications;
|
apps = config.defaultApplications;
|
||||||
lock_fork = "swaylock -f -c ${builtins.substring 1 7 thm.bg}";
|
lock_fork = pkgs.writeShellScript "lock_fork" "/run/wrappers/bin/vlock -san &";
|
||||||
lock = pkgs.writeShellScript "lock" "swaymsg 'output * dpms off'; swaylock -c ${builtins.substring 1 7 thm.bg}; swaymsg 'output * dpms on'";
|
lock = pkgs.writeShellScript "lock" "swaymsg 'output * dpms off'; /run/wrappers/bin/vlock -san; swaymsg 'output * dpms on'";
|
||||||
in {
|
in {
|
||||||
environment.sessionVariables._JAVA_AWT_WM_NONREPARENTING = "1";
|
environment.sessionVariables._JAVA_AWT_WM_NONREPARENTING = "1";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user