diff options
author | Nikita Uvarov <uv.nikita@gmail.com> | 2018-05-26 20:39:58 +0200 |
---|---|---|
committer | Nikita Uvarov <uv.nikita@gmail.com> | 2018-05-27 00:00:10 +0200 |
commit | cacb8d410ec8e0e5ff08ac7aa81cd10e8e3f2eb6 (patch) | |
tree | b9665060bad61564005a662af62bfc0d1d933899 /modules/services/window-managers | |
parent | 4b388ee90267a54c5bed0b922ba8669b7d85c427 (diff) |
i3: deprecate i3.config.startup.*.workspace option
Fixes #265.
Diffstat (limited to 'modules/services/window-managers')
-rw-r--r-- | modules/services/window-managers/i3.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/services/window-managers/i3.nix b/modules/services/window-managers/i3.nix index a6675651cd7..fd144314e18 100644 --- a/modules/services/window-managers/i3.nix +++ b/modules/services/window-managers/i3.nix @@ -33,7 +33,11 @@ let workspace = mkOption { type = types.nullOr types.string; 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 ); }) + + (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.") + ]; + }) ]); } |