home: wm: screen-lock: remove 'cornerLock'

I never use it...
This commit is contained in:
Bruno BELANYI 2026-04-04 16:02:10 +01:00
parent 5381aa79de
commit 8233f8e3d9
2 changed files with 2 additions and 42 deletions

View file

@ -12,22 +12,6 @@ let
in
{
config = lib.mkIf cfg.enable {
assertions = [
{
assertion =
let
inherit (cfg) cornerLock notify;
bothEnabled = cornerLock.enable && notify.enable;
cornerLockHigherThanNotify = cornerLock.delay >= notify.delay;
in
bothEnabled -> cornerLockHigherThanNotify;
message = ''
`config.my.home.wm.notify.delay` cannot have a value higher than
`config.my.home.wm.cornerLock.delay`.
'';
}
];
services.screen-locker = {
enable = true;
@ -36,15 +20,7 @@ in
lockCmd = cfg.command;
xautolock = {
extraOptions = lib.optionals cfg.cornerLock.enable [
# Mouse corners: instant lock on upper-left, never lock on lower-right
"-cornerdelay"
"${toString cfg.cornerLock.delay}"
"-cornerredelay"
"${toString cfg.cornerLock.delay}"
"-corners"
"+00-"
] ++ lib.optionals cfg.notify.enable [
extraOptions = lib.optionals cfg.notify.enable [
"-notify"
"${toString cfg.notify.delay}"
"-notifier"