From ee1dc7d9fabba49914190aa48258c8f8039b50ae Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Wed, 15 May 2024 15:50:32 +0200 Subject: [PATCH] hyprland ace fix --- home-modules/hyprland.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/home-modules/hyprland.nix b/home-modules/hyprland.nix index 7230ca0..aa46f64 100755 --- a/home-modules/hyprland.nix +++ b/home-modules/hyprland.nix @@ -75,22 +75,22 @@ lib.mkIf (user != "tv") settings = { monitor = - if host == "NxXPS" then [ - "${monitors.xps.main.name}, ${monitors.xps.main.resolution}, ${monitors.xps.main.position}, ${monitors.xps.main.scale}" - "${monitors.xps.second.name}, ${monitors.xps.second.resolution}, ${monitors.xps.second.position}, ${monitors.xps.second.scale}" - ] else if host == "NxNORTH" then [ - "${monitors.north.main.name}, ${monitors.north.main.resolution}, ${monitors.north.main.position}, ${monitors.north.main.scale}" - "${monitors.north.left.name}, ${monitors.north.left.resolution}, ${monitors.north.left.position}, ${monitors.north.left.scale}" - "${monitors.north.right.name}, ${monitors.north.right.resolution}, ${monitors.north.right.position}, ${monitors.north.right.scale}" - ] else [ - "${monitors.ace.main.name}, ${monitors.ace.main.resolution}, ${monitors.ace.main.position}, ${monitors.ace.main.scale}" - ]; + if host == "NxXPS" then (with monitors.xps; [ + "${main.name}, ${main.resolution}, ${main.position}, ${main.scale}" + "${second.name}, ${second.resolution}, ${second.position}, ${second.scale}" + ]) else (if host == "NxNORTH" then (with monitors.north; [ + "${main.name}, ${main.resolution}, ${main.position}, ${main.scale}" + "${left.name}, ${left.resolution}, ${left.position}, ${left.scale}" + "${right.name}, ${right.resolution}, ${right.position}, ${right.scale}" + ]) else ( with monitors.ace; [ + "${main.name}, ${main.resolution}, ${main.position}, ${main.scale}" + ])); workspace = let - d1 = if host == "NxXPS" then monitors.xps.main.name else if host == "NxNORTH" then monitors.north.main.name else monitors.ace.main; - d2 = if host == "NxXPS" then monitors.xps.second.name else if host == "NxNORTH" then monitors.north.left.name else monitors.ace.main; - d3 = if host == "NxXPS" then monitors.xps.main.name else if host == "NxNORTH" then monitors.north.right.name else monitors.ace.main; + d1 = if host == "NxXPS" then monitors.xps.main.name else (if host == "NxNORTH" then monitors.north.main.name else monitors.ace.main.name); + d2 = if host == "NxXPS" then monitors.xps.second.name else (if host == "NxNORTH" then monitors.north.left.name else monitors.ace.main.name); + d3 = if host == "NxXPS" then monitors.xps.main.name else (if host == "NxNORTH" then monitors.north.right.name else monitors.ace.main.name); compact = "gapsin:0, gapsout:0, bordersize:1, rounding:false"; in [