Modules/Waybar: Make option accept list of outputs instead of single
This commit is contained in:
@ -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"];
|
||||
|
||||
@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user