From 537e16501b72507ba61adb1f94c2577f5fea3e34 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 4 Apr 2026 16:18:54 +0100 Subject: [PATCH] home: wm: use 'i3lock' with 'i3' Rather than use it as the default, set it in the `i3` module. --- modules/home/wm/default.nix | 3 +-- modules/home/wm/i3/default.nix | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/home/wm/default.nix b/modules/home/wm/default.nix index 00ac5f7..b5a2a80 100644 --- a/modules/home/wm/default.nix +++ b/modules/home/wm/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let mkRelatedOption = description: relatedWMs: let @@ -72,7 +72,6 @@ in command = mkOption { type = types.str; - default = "${lib.getExe pkgs.i3lock} -n -c 000000"; example = "\${lib.getExe pkgs.i3lock} -n -i lock.png"; description = "Locker command to run"; }; diff --git a/modules/home/wm/i3/default.nix b/modules/home/wm/i3/default.nix index 1943071..4e5b03f 100644 --- a/modules/home/wm/i3/default.nix +++ b/modules/home/wm/i3/default.nix @@ -71,6 +71,9 @@ in xdotool # Used by 'rofi-rbw', in a mapping ]; + # Set `i3lock` as the (default) lock command + my.home.wm.screen-lock.command = lib.mkDefault "${lib.getExe pkgs.i3lock} -n -c 000000"; + xsession.windowManager.i3 = { enable = true;