feat: waybar displays
This commit is contained in:
parent
8f8dd0d21d
commit
af46dcdf41
1 changed files with 69 additions and 67 deletions
|
|
@ -41,7 +41,12 @@ in
|
|||
../../common/colors.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable
|
||||
config =
|
||||
let
|
||||
displays_raw = config.modules.hyprland.displays;
|
||||
displays = map (display_raw: lib.builtins.head (lib.strings.splitString "," displays_raw)) displays_raw;
|
||||
in
|
||||
lib.mkIf cfg.enable
|
||||
{
|
||||
modules.waybar.enabled = (
|
||||
let
|
||||
|
|
@ -70,10 +75,7 @@ in
|
|||
margin-top = 8;
|
||||
margin-left = 10;
|
||||
margin-right = 10;
|
||||
output = [
|
||||
"DP-3"
|
||||
"DP-2"
|
||||
];
|
||||
output = displays;
|
||||
modules-left = cfg.modules.left;
|
||||
modules-center = cfg.modules.center;
|
||||
modules-right = cfg.modules.right;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue