feat: use new displays, for automatic automapaper
This commit is contained in:
parent
4c4beedc71
commit
e3c6cdf606
5 changed files with 350 additions and 286 deletions
|
|
@ -42,10 +42,6 @@ in
|
|||
];
|
||||
|
||||
config =
|
||||
let
|
||||
displays_raw = config.modules.hyprland.displays;
|
||||
displays = builtins.map (display_raw: builtins.head (lib.strings.splitString "," display_raw)) displays_raw;
|
||||
in
|
||||
lib.mkIf cfg.enable
|
||||
{
|
||||
modules.waybar.enabled = (
|
||||
|
|
@ -75,7 +71,7 @@ in
|
|||
margin-top = 8;
|
||||
margin-left = 10;
|
||||
margin-right = 10;
|
||||
output = displays;
|
||||
output = builtins.map (display: display.name) config.modules.hyprland.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