Modules/Waybar: Make option accept list of outputs instead of single
This commit is contained in:
@ -17,7 +17,7 @@
|
|||||||
# because it forces en-US keyboard layout.
|
# because it forces en-US keyboard layout.
|
||||||
fcitx.enable = true;
|
fcitx.enable = true;
|
||||||
|
|
||||||
waybar.monitor = "DP-1";
|
waybar.monitors = ["DP-1" "DP-2"];
|
||||||
};
|
};
|
||||||
|
|
||||||
home = let
|
home = let
|
||||||
|
|||||||
@ -21,7 +21,7 @@ in {
|
|||||||
spacing = 0;
|
spacing = 0;
|
||||||
margin = "10px 10px 0px 10px";
|
margin = "10px 10px 0px 10px";
|
||||||
fixed-center = true;
|
fixed-center = true;
|
||||||
output = ["${waybar.monitor}"];
|
output = waybar.monitors;
|
||||||
|
|
||||||
modules-left = ["custom/launcher" "user" "hyprland/window"];
|
modules-left = ["custom/launcher" "user" "hyprland/window"];
|
||||||
modules-center = ["hyprland/workspaces"];
|
modules-center = ["hyprland/workspaces"];
|
||||||
|
|||||||
@ -7,9 +7,9 @@ with lib;
|
|||||||
with mylib.modules; {
|
with mylib.modules; {
|
||||||
enable = mkEnableOption "Waybar";
|
enable = mkEnableOption "Waybar";
|
||||||
|
|
||||||
monitor = mkOption {
|
monitors = mkOption {
|
||||||
type = types.str;
|
type = types.listOf types.str;
|
||||||
example = "HDMI-A-1";
|
example = ''["HDMI-A-1", "DP-1"]'';
|
||||||
description = "What monitor to display the Waybar on";
|
description = "What monitor to display the Waybar on";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user