mirror of
https://github.com/fredrikr79/nixos.git
synced 2026-01-12 01:43:06 +01:00
xsecurelock
This commit is contained in:
@@ -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
|
||||
|
||||
4
home.nix
4
home.nix
@@ -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";
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user