1
0
Fork 0
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:
Gaspard Culis 2025-09-03 14:42:44 +02:00 committed by GitHub
parent 30fc1b5326
commit 6159629d05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 60 additions and 12 deletions

View file

@ -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";