desktop/wm: refactor locker
This commit is contained in:
parent
6847b617a6
commit
4d7f565ba4
3 changed files with 12 additions and 2 deletions
|
@ -17,6 +17,10 @@ in
|
|||
monitors = mkDefault 1;
|
||||
};
|
||||
|
||||
common.wm = {
|
||||
locker = pkgs.xsecurelock;
|
||||
};
|
||||
|
||||
# Compositor to prevent screen tearing
|
||||
services.picom = {
|
||||
enable = true;
|
||||
|
@ -24,6 +28,11 @@ in
|
|||
vSync = true;
|
||||
};
|
||||
|
||||
programs.xss-lock = {
|
||||
enable = true;
|
||||
lockerCommand = lib.getExe config.common.wm.locker;
|
||||
};
|
||||
|
||||
# Automatically attach/detatch connected/disconnected monitors
|
||||
services.autorandr = {
|
||||
enable = config.info.graphical && !config.info.stationary;
|
||||
|
@ -53,7 +62,7 @@ in
|
|||
xprop
|
||||
])
|
||||
|
||||
xsecurelock
|
||||
config.common.wm.locker
|
||||
blugon
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue