Commit f97cddb5bcd3

Vincent Demeester <vincent@sbr.pm>
2018-11-30 16:17:37
i3: allow custom lock command ๐Ÿ‘…
default to slimlock. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 2f4b900
Changed files (1)
modules
profiles
modules/profiles/i3.nix
@@ -13,6 +13,11 @@ in
         description = "Enable i3 profile";
         type = types.bool;
       };
+      lockCmd = mkOption {
+        default = "slimlock"; # "i3lock-color --clock --color=606060"
+        description = "Lock command to use";
+        type = types.str;
+      };
     };
   };
   config = mkIf cfg.enable {
@@ -31,7 +36,7 @@ in
       network-manager-applet.enable = true;
       screen-locker = {
         enable = true;
-        lockCmd = "i3lock-color --clock --color=606060";
+        lockCmd = cfg.lockCmd;
         inactiveInterval = 15;
       };
       random-background = {