1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 10:49:44 +01:00

i3: deprecate i3.config.startup.*.workspace option

Fixes #265.
This commit is contained in:
Nikita Uvarov 2018-05-26 20:39:58 +02:00
parent 4b388ee902
commit cacb8d410e
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -33,7 +33,11 @@ let
workspace = mkOption { workspace = mkOption {
type = types.nullOr types.string; type = types.nullOr types.string;
default = null; default = null;
description = "Launch application on a particular workspace."; description = ''
Launch application on a particular workspace.
DEPRECATED: Use i3.config.assigns instead.
See https://github.com/rycee/home-manager/issues/265.
'';
}; };
}; };
}; };
@ -776,5 +780,13 @@ in
if (cfg.config.gaps != null) then pkgs.i3-gaps else pkgs.i3 if (cfg.config.gaps != null) then pkgs.i3-gaps else pkgs.i3
); );
}) })
(mkIf (cfg.config != null && (any (s: s.workspace != null) cfg.config.startup)) {
warnings = [
("'xsession.windowManager.i3.config.startup.*.workspace' is deprecated, "
+ "use 'xsession.windowManager.i3.config.assigns' instead."
+ "See https://github.com/rycee/home-manager/issues/265.")
];
})
]); ]);
} }