mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
parent
4b388ee902
commit
cacb8d410e
1 changed files with 13 additions and 1 deletions
|
@ -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.")
|
||||||
|
];
|
||||||
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue