Ironbar fix

This commit is contained in:
DashieTM 2025-05-13 19:30:36 +02:00
parent 518b78bf96
commit b79ba87fcb
2 changed files with 9 additions and 1 deletions

View file

@ -91,6 +91,14 @@ in {
Whether to use ironbar in hyprland. 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 { useDefaultConfig = lib.mkOption {
default = true; default = true;
example = false; example = false;

View file

@ -121,7 +121,7 @@
]; ];
}; };
monitorConfig = monitorConfig =
if config.mods.hypr.hyprland.enable if config.mods.hypr.hyprland.ironbarSingleMonitor
then {monitors.${config.mods.hypr.hyprland.defaultMonitor} = ironbarDefaultConfig;} then {monitors.${config.mods.hypr.hyprland.defaultMonitor} = ironbarDefaultConfig;}
else ironbarDefaultConfig; else ironbarDefaultConfig;
in { in {