xsecurelock

This commit is contained in:
2025-10-06 12:57:51 +02:00
parent eac2014a0a
commit 66bac15528
3 changed files with 10 additions and 8 deletions

View File

@@ -319,6 +319,7 @@ in
nnn
libreoffice-qt6-fresh
nix-tree
xsecurelock
]
);
@@ -448,9 +449,14 @@ in
# Power button invokes suspend, not shutdown.
services.logind.settings.Login = {
# extraConfig = "HandlePowerKey=hibernate";
HandleLidSwitch = "hybrid-sleep";
HandlePowerKey = "hibernate";
HandleLidSwitch = "suspend-then-hibernate";
HandlePowerKey = "ignore";
};
programs.xss-lock = {
enable = true;
lockerCommand = "${pkgs.xsecurelock}/bin/xsecurelock";
extraOptions = [ "--transfer-sleep-lock" ];
};
# video acceleration

View File

@@ -1263,10 +1263,6 @@ in
enable = true;
configFile.source = ./home/config/nushell/config.nu;
shellAliases = {
hibernate = "systemctl hibernate";
suspend = "systemctl suspend";
logout = "sudo pkill -u fredrikr";
lock = "/home/fredrikr/.logout.sh";
jl = "jj log";
jla = ''jj log -r "all()"'';
jll = "jj log --no-pager --limit 5";

View File

@@ -61,7 +61,7 @@ myConfig =
-- , ("<M-S-s>", unGrab *> spawn "scrot -s ~/Pictures/Screenshots/%b-%d::%H-%M-%S.png")
]
`additionalKeys` [ ((mod1Mask, xK_Tab), nextMatch History (return True)),
((modm, xK_Escape), spawn "dm-tool lock"),
((modm, xK_Escape), spawn "xset s activate"),
((modm, xK_Down), nextWS),
((modm, xK_Up), prevWS),
((modm, xK_j), nextWS),