mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
swayosd: Remove non-existing display arg option (#7752)
This commit is contained in:
parent
30fc1b5326
commit
6159629d05
4 changed files with 60 additions and 12 deletions
|
|
@ -18,6 +18,14 @@ in
|
|||
{
|
||||
meta.maintainers = [ lib.hm.maintainers.pltanton ];
|
||||
|
||||
imports = [
|
||||
(lib.mkRemovedOptionModule [
|
||||
"services"
|
||||
"swayosd"
|
||||
"display"
|
||||
] "The --display flag is no longer available in swayosd-server.")
|
||||
];
|
||||
|
||||
options.services.swayosd = {
|
||||
enable = lib.mkEnableOption ''
|
||||
swayosd, a GTK based on screen display for keyboard shortcuts like
|
||||
|
|
@ -45,15 +53,6 @@ in
|
|||
Use a custom Stylesheet file instead of looking for one.
|
||||
'';
|
||||
};
|
||||
|
||||
display = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "eDP-1";
|
||||
description = ''
|
||||
X display to use.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
@ -79,7 +78,6 @@ in
|
|||
Type = "simple";
|
||||
ExecStart =
|
||||
"${cfg.package}/bin/swayosd-server"
|
||||
+ (optionalString (cfg.display != null) " --display ${cfg.display}")
|
||||
+ (optionalString (cfg.stylePath != null) " --style ${lib.escapeShellArg cfg.stylePath}")
|
||||
+ (optionalString (cfg.topMargin != null) " --top-margin ${toString cfg.topMargin}");
|
||||
Restart = "always";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue