diff --git a/modules/programs/hypr/hyprland.nix b/modules/programs/hypr/hyprland.nix index 161e1cf..5ddc1a5 100644 --- a/modules/programs/hypr/hyprland.nix +++ b/modules/programs/hypr/hyprland.nix @@ -91,6 +91,14 @@ in { Whether to use ironbar in hyprland. ''; }; + ironbarSingleMonitor = lib.mkOption { + default = true; + example = false; + type = lib.types.bool; + description = '' + Whether to use ironbar on a single monitor. + ''; + }; useDefaultConfig = lib.mkOption { default = true; example = false; diff --git a/modules/programs/ironbar.nix b/modules/programs/ironbar.nix index ca8255b..ba15edd 100644 --- a/modules/programs/ironbar.nix +++ b/modules/programs/ironbar.nix @@ -121,7 +121,7 @@ ]; }; monitorConfig = - if config.mods.hypr.hyprland.enable + if config.mods.hypr.hyprland.ironbarSingleMonitor then {monitors.${config.mods.hypr.hyprland.defaultMonitor} = ironbarDefaultConfig;} else ironbarDefaultConfig; in {