1

Modules/Waybar: Make option accept list of outputs instead of single

This commit is contained in:
2026-03-20 20:00:12 +01:00
parent 6305d9ca2e
commit d1a6aafed5
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@
# because it forces en-US keyboard layout.
fcitx.enable = true;
waybar.monitor = "DP-1";
waybar.monitors = ["DP-1" "DP-2"];
};
home = let

View File

@ -21,7 +21,7 @@ in {
spacing = 0;
margin = "10px 10px 0px 10px";
fixed-center = true;
output = ["${waybar.monitor}"];
output = waybar.monitors;
modules-left = ["custom/launcher" "user" "hyprland/window"];
modules-center = ["hyprland/workspaces"];

View File

@ -7,9 +7,9 @@ with lib;
with mylib.modules; {
enable = mkEnableOption "Waybar";
monitor = mkOption {
type = types.str;
example = "HDMI-A-1";
monitors = mkOption {
type = types.listOf types.str;
example = ''["HDMI-A-1", "DP-1"]'';
description = "What monitor to display the Waybar on";
};
}